Core/Misc: Improved ip2location code and set it to disabled by default

(cherry picked from commit 0ead73516adfeaff96292685592085e20737d535)
This commit is contained in:
Shauren
2019-01-09 17:35:18 +01:00
parent 61532e9816
commit 50cfeb9aa4
8 changed files with 67 additions and 75 deletions
+2 -2
View File
@@ -743,8 +743,8 @@ void WorldSocket::HandleAuthSessionCallback(std::shared_ptr<WorldPackets::Auth::
return;
}
if (IpLocationRecord* location = sIPLocation->GetData(address))
_ipCountry = location->country_code;
if (IpLocationRecord const* location = sIPLocation->GetLocationRecord(address))
_ipCountry = location->CountryCode;
///- Re-check ip locking (same check as in auth).
if (account.BattleNet.IsLockedToIP)