aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-04-30 16:14:26 +0100
committerGravatar Sadie Powell2022-04-30 16:26:31 +0100
commit0a271553fc642cac1097f9bb798e622e34a4ab3b (patch)
tree37bebc4dd3efa99dcaa7dc87f934b527dd37be71 /src/configreader.cpp
parentEnable support for UNIX socket listeners on Windows. (diff)
Enable getting the local server hostname on Windows.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp2
1 files changed, 0 insertions, 2 deletions
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";
}