From 94d53fa77c80f42bc05a71fdc2b1d64f017e07fa Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Thu, 2 Jan 2025 20:03:44 -0600 Subject: [PATCH] Update dChatServer/ChatWebAPI.cpp Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> --- dChatServer/ChatWebAPI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dChatServer/ChatWebAPI.cpp b/dChatServer/ChatWebAPI.cpp index fc069dbb..a569cc19 100644 --- a/dChatServer/ChatWebAPI.cpp +++ b/dChatServer/ChatWebAPI.cpp @@ -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