cleanup and fixes

This commit is contained in:
Aaron Kimbre
2025-01-02 16:28:34 -06:00
parent 9387a8e3d1
commit 2d08ec641c
3 changed files with 4 additions and 5 deletions

View File

@@ -111,9 +111,8 @@ ChatWebAPI::ChatWebAPI() {
// make listen address
std::string listen_ip = Game::config->GetValue("web_server_listen_ip");
std::string listen_port = Game::config->GetValue("wed_server_listen_port");
LOG_DEBUG("Starting web server on %s:%s", listen_ip.c_str(), listen_port.c_str());
std::string listen_address = "http://" + listen_ip + ":" + listen_port;
LOG_DEBUG("Starting web server on %s", listen_address.c_str());
LOG("Starting web server on %s", listen_address.c_str());
mg_mgr_init(&mgr); // Initialise event manager
mg_http_listen(&mgr, listen_address.c_str(), HandleRequests, NULL); // Create HTTP listener
}