Common: Replace ip2nation by ip2location. (#21957)
Replace ip2nation by ip2location. Download: https://lite.ip2location.com/database/ip-country Core/Misc: Improved ip2location code and set it to disabled by default
This commit is contained in:
1 parent
133ced9c7a
commit
3ecf82f1a0
8 files changed
+67
-76
No files matched your search
@@ -611,8 +611,8 @@ void WorldSocket::HandleAuthSessionCallback(std::shared_ptr<AuthSession> authSes
|
||||
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) // if ip is locked
|
||||
|
||||
Reference in new issue
Block a user