From 50cfeb9aa406b9f81a6aa51dcd87201e5f3bae1e Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 23 Jun 2018 21:31:09 +0200 Subject: Core/Misc: Improved ip2location code and set it to disabled by default (cherry picked from commit 0ead73516adfeaff96292685592085e20737d535) --- src/server/bnetserver/Server/Session.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/bnetserver/Server') diff --git a/src/server/bnetserver/Server/Session.cpp b/src/server/bnetserver/Server/Session.cpp index 56c71a3eeb6..7ebb7abb58b 100644 --- a/src/server/bnetserver/Server/Session.cpp +++ b/src/server/bnetserver/Server/Session.cpp @@ -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") -- cgit v1.2.3