mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-11-03 22:21:59 +00:00 
			
		
		
		
	fixed config value
This commit is contained in:
		@@ -82,7 +82,7 @@ void ChatWebApi::Listen(const uint32_t port) {
 | 
				
			|||||||
		if (data.empty()) res.status = 204;
 | 
							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(){
 | 
					void ChatWebApi::Stop(){
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -12,4 +12,5 @@ max_number_of_friends=50
 | 
				
			|||||||
enable_chat_web_api=0
 | 
					enable_chat_web_api=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# If that chat web api is enabled, it will only listen for connections on this ip address
 | 
					# 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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user