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
@@ -1698,10 +1698,10 @@ public:
|
||||
lastIp = fields[4].GetString();
|
||||
lastLogin = fields[5].GetString();
|
||||
|
||||
if (IpLocationRecord* location = sIPLocation->GetData(lastIp))
|
||||
if (IpLocationRecord const* location = sIPLocation->GetLocationRecord(lastIp))
|
||||
{
|
||||
lastIp.append(" (");
|
||||
lastIp.append(location->country_name);
|
||||
lastIp.append(location->CountryName);
|
||||
lastIp.append(")");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user