diff options
Diffstat (limited to 'src/server/bnetserver')
| -rw-r--r-- | src/server/bnetserver/Server/Session.cpp | 4 | ||||
| -rw-r--r-- | src/server/bnetserver/bnetserver.conf.dist | 9 |
2 files changed, 6 insertions, 7 deletions
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") diff --git a/src/server/bnetserver/bnetserver.conf.dist b/src/server/bnetserver/bnetserver.conf.dist index 0e5ccc18a53..f6fcb5764b4 100644 --- a/src/server/bnetserver/bnetserver.conf.dist +++ b/src/server/bnetserver/bnetserver.conf.dist @@ -200,12 +200,11 @@ MySQLExecutable = "" # # IPLocationFile # Description: The path to your IP2Location database CSV file. -# Example: "C:/Trinity/IP2Location.csv" -# "/home/trinity/IP2Location.csv" -# Default: "." - (Current core directory) -# "" - (Disabled) +# Example: "C:/Trinity/IP2LOCATION-LITE-DB1.CSV" +# "/home/trinity/IP2LOCATION-LITE-DB1.CSV" +# Default: "" - (Disabled) -IPLocationFile = "." +IPLocationFile = "" # ################################################################################################### |
