aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpsys.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2022-02-02 12:15:09 +0100
committerStefan Boberg <[email protected]>2022-02-02 12:15:09 +0100
commit3e74d92efb3dbdbe3f64ffe8f28ab8d495cd9080 (patch)
tree921967ea468b16a38405b8adbd71b82307c776a4 /zenhttp/httpsys.cpp
parentSome minor cleanup (diff)
downloadzen-3e74d92efb3dbdbe3f64ffe8f28ab8d495cd9080.tar.xz
zen-3e74d92efb3dbdbe3f64ffe8f28ab8d495cd9080.zip
Added some diagnostics to http.sys server to make it clear when we are listening to localhost only
Diffstat (limited to 'zenhttp/httpsys.cpp')
-rw-r--r--zenhttp/httpsys.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp
index 3c57f7ce3..8e898eb18 100644
--- a/zenhttp/httpsys.cpp
+++ b/zenhttp/httpsys.cpp
@@ -802,6 +802,8 @@ HttpSysServer::InitializeServer(int BasePort)
// port for the current user. eg:
// netsh http add urlacl url=http://*:1337/ user=<some_user>
+ ZEN_WARN("Unable to register handler using '{}' - falling back to local-only", WideToUtf8(WildcardUrlPath));
+
const std::u8string_view Hosts[] = {u8"[::1]"sv, u8"localhost"sv, u8"127.0.0.1"sv};
ULONG InternalResult = ERROR_SHARING_VIOLATION;
@@ -818,6 +820,8 @@ HttpSysServer::InitializeServer(int BasePort)
if (InternalResult == NO_ERROR)
{
+ ZEN_INFO("Registered local handler '{}'", WideToUtf8(LocalUrlPath));
+
m_BaseUris.push_back(LocalUrlPath.c_str());
}
else