diff options
| author | 2022-04-30 16:14:26 +0100 | |
|---|---|---|
| committer | 2022-04-30 16:26:31 +0100 | |
| commit | 0a271553fc642cac1097f9bb798e622e34a4ab3b (patch) | |
| tree | 37bebc4dd3efa99dcaa7dc87f934b527dd37be71 /src/configreader.cpp | |
| parent | Enable 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.cpp | 2 |
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"; } |
