Core/Realms: Minor refactor to realm address storage

Port From (https://github.com/TrinityCore/TrinityCore/commit/cc6dba1376905456062d1ade8adcbaed4f8f484e)
This commit is contained in:
hondacrx
2023-09-13 18:31:04 -04:00
parent f89df8dca8
commit 9f660fa4b0
5 changed files with 17 additions and 35 deletions
@@ -120,9 +120,9 @@ namespace BNetServer
public string GetHostnameForClient(IPEndPoint address)
{
if (IPAddress.IsLoopback(address.Address))
return _hostnames[0];
return _hostnames[1];
return _hostnames[1];
return _hostnames[0];
}
public int GetPort() { return _port; }