增加URL日志输出

This commit is contained in:
xx
2024-06-01 15:47:15 +08:00
parent 72cd9ff778
commit 907349bb15

View File

@@ -34,6 +34,15 @@ bool fastweb::start()
host_config.port = iter->second.port;
host_config.ssl = iter->second.https;
ws_config.host.push_back(host_config);
std::string url;
if (host_config.ssl)
url = "https://";
else
url = "http://";
url += host_config.domain;
url += ":" + std::to_string(host_config.port);
LOG_WARN("URL: "+url);
}
ws_config.name = "master";