Skip to content

Commit

Permalink
fixed config value
Browse files Browse the repository at this point in the history
  • Loading branch information
aronwk-aaron committed Apr 25, 2024
1 parent faee5b7 commit bce03ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dChatServer/ChatWebApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(){
Expand Down
3 changes: 2 additions & 1 deletion resources/chatconfig.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bce03ca

Please sign in to comment.