From 0ead73516adfeaff96292685592085e20737d535 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 --- src/server/authserver/Server/AuthSession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/authserver/Server/AuthSession.cpp') diff --git a/src/server/authserver/Server/AuthSession.cpp b/src/server/authserver/Server/AuthSession.cpp index 648296b620b..703f0f6062f 100644 --- a/src/server/authserver/Server/AuthSession.cpp +++ b/src/server/authserver/Server/AuthSession.cpp @@ -341,8 +341,8 @@ void AuthSession::LogonChallengeCallback(PreparedQueryResult result) } else { - if (IpLocationRecord* location = sIPLocation->GetData(ipAddress)) - _ipCountry = location->country_code; + if (IpLocationRecord const* location = sIPLocation->GetLocationRecord(ipAddress)) + _ipCountry = location->CountryCode; TC_LOG_DEBUG("server.authserver", "[AuthChallenge] Account '%s' is not locked to ip", _accountInfo.Login.c_str()); if (_accountInfo.LockCountry.empty() || _accountInfo.LockCountry == "00") -- cgit v1.2.3