Core/Realms: Minor refactor to realm address storage
Port From (https://github.com/TrinityCore/TrinityCore/commit/cc6dba1376905456062d1ade8adcbaed4f8f484e)
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user