mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-01-21 04:07:01 +00:00
Update dChatServer/ChatWebAPI.cpp
Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com>
This commit is contained in:
parent
846ba894a4
commit
94d53fa77c
@ -122,9 +122,9 @@ ChatWebAPI::~ChatWebAPI() {
|
||||
|
||||
void ChatWebAPI::Listen() {
|
||||
// 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");
|
||||
std::string listen_address = "http://" + listen_ip + ":" + listen_port;
|
||||
const std::string& listen_ip = Game::config->GetValue("web_server_listen_ip");
|
||||
const std::string& listen_port = Game::config->GetValue("wed_server_listen_port");
|
||||
const std::string& listen_address = "http://" + listen_ip + ":" + listen_port;
|
||||
LOG("Starting web server on %s", listen_address.c_str());
|
||||
|
||||
mg_http_listen(&mgr, listen_address.c_str(), HandleRequests, NULL); // Create HTTP listener
|
||||
|
Loading…
Reference in New Issue
Block a user