From bce03ca08df9a44121536a2e5ba037317cc9b40e Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Thu, 25 Apr 2024 10:25:19 -0500 Subject: [PATCH] fixed config value --- dChatServer/ChatWebApi.cpp | 2 +- resources/chatconfig.ini | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dChatServer/ChatWebApi.cpp b/dChatServer/ChatWebApi.cpp index c9cebc6a..0ac185d8 100644 --- a/dChatServer/ChatWebApi.cpp +++ b/dChatServer/ChatWebApi.cpp @@ -82,7 +82,7 @@ void ChatWebApi::Listen(const uint32_t port) { if (data.empty()) res.status = 204; }); - m_APIServer.listen(Game::config->GetValue("enable_chat_web_api").c_str(), port); + m_APIServer.listen(Game::config->GetValue("chat_web_api_listen_address").c_str(), port); }; void ChatWebApi::Stop(){ diff --git a/resources/chatconfig.ini b/resources/chatconfig.ini index ee990089..da82d0b1 100644 --- a/resources/chatconfig.ini +++ b/resources/chatconfig.ini @@ -12,4 +12,5 @@ max_number_of_friends=50 enable_chat_web_api=0 # If that chat web api is enabled, it will only listen for connections on this ip address -chat_web_api_listen_address=localhost +# 127.0.0.1 is localhost +chat_web_api_listen_address=127.0.0.1