mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/Misc: Improved ip2location code and set it to disabled by default
(cherry picked from commit 0ead73516a)
This commit is contained in:
@@ -336,8 +336,8 @@ uint32 Battlenet::Session::VerifyWebCredentials(std::string const& webCredential
|
||||
}
|
||||
else
|
||||
{
|
||||
if (IpLocationRecord* location = sIPLocation->GetData(ip_address))
|
||||
_ipCountry = location->country_code;
|
||||
if (IpLocationRecord const* location = sIPLocation->GetLocationRecord(ip_address))
|
||||
_ipCountry = location->CountryCode;
|
||||
|
||||
TC_LOG_DEBUG("session", "[Session::HandleVerifyWebCredentials] Account '%s' is not locked to ip", _accountInfo->Login.c_str());
|
||||
if (_accountInfo->LockCountry.empty() || _accountInfo->LockCountry == "00")
|
||||
|
||||
Reference in New Issue
Block a user