From 0a271553fc642cac1097f9bb798e622e34a4ab3b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 30 Apr 2022 16:14:26 +0100 Subject: Enable getting the local server hostname on Windows. --- src/configreader.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 66d49930d..8abcb0279 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -284,7 +284,6 @@ void ServerConfig::CrossCheckConnectBlocks(ServerConfig* current) static std::string GetServerHost() { -#ifndef _WIN32 char hostname[256]; if (gethostname(hostname, sizeof(hostname)) == 0) { @@ -295,7 +294,6 @@ static std::string GetServerHost() if (name.length() <= ServerInstance->Config->Limits.MaxHost && InspIRCd::IsHost(name)) return name; } -#endif return "irc.example.com"; } -- cgit v1.3.1-10-gc9f91