1
0
Fork 0

доза: условие гонки в докере строит, тянет mfc42.dll автоматически

This commit is contained in:
Arthur K. 2025-12-19 15:25:57 +03:00
parent 1c79edcde7
commit 13bf157135
Signed by: wzray
GPG key ID: B97F30FDC4636357
6 changed files with 51 additions and 33 deletions

View file

@ -142,7 +142,8 @@ class WebServer {
public:
WebServer() {
if (!std::filesystem::exists(TMP_FOLDER)) std::filesystem::create_directory(TMP_FOLDER);
if (!std::filesystem::exists(TMP_FOLDER))
std::filesystem::create_directory(TMP_FOLDER);
m_svr.Post("/translate", [this](const httplib::Request &req, httplib::Response &res) {
TranslateHandler(req, res);
@ -159,6 +160,7 @@ class WebServer {
}
void listen(const char *host = "0.0.0.0", unsigned short port = 80) {
print("Started!");
m_svr.listen(host, port);
}