diff --git a/dChatServer/ChatWebAPI.cpp b/dChatServer/ChatWebAPI.cpp index 75ff2d64..49903ced 100644 --- a/dChatServer/ChatWebAPI.cpp +++ b/dChatServer/ChatWebAPI.cpp @@ -150,11 +150,12 @@ ChatWebAPI::~ChatWebAPI() { bool ChatWebAPI::Startup() { // Make listen address - std::string listen_ip = Game::config->GetValue("web_server_listen_ip"); - if (listen_ip == "localhost") listen_ip = "127.0.0.1"; + // std::string listen_ip = Game::config->GetValue("web_server_listen_ip"); + // if (listen_ip == "localhost") listen_ip = "127.0.0.1"; const std::string& listen_port = Game::config->GetValue("web_server_listen_port"); - const std::string& listen_address = "http://" + listen_ip + ":" + listen_port; + // const std::string& listen_address = "http://" + listen_ip + ":" + listen_port; + const std::string& listen_address = "http://localhost:" + listen_port; LOG("Starting web server on %s", listen_address.c_str()); // Create HTTP listener diff --git a/resources/chatconfig.ini b/resources/chatconfig.ini index d59d8252..1391df44 100644 --- a/resources/chatconfig.ini +++ b/resources/chatconfig.ini @@ -9,5 +9,6 @@ max_number_of_friends=50 web_server_enabled=0 -web_server_listen_ip=127.0.0.1 +# Unused for now +# web_server_listen_ip=127.0.0.1 web_server_listen_port=2005