diff options
author | Gooyeth <566327+Gooyeth@users.noreply.github.com> | 2018-06-22 17:32:39 -0600 |
---|---|---|
committer | Aokromes <Aokromes@users.noreply.github.com> | 2018-06-23 01:32:39 +0200 |
commit | 2fe4ab94c52ad2fa90189ecd9c053da49f06561e (patch) | |
tree | d505bd2176de8a659401c1b87694ca20c96bedb3 /src/server/authserver/Main.cpp | |
parent | 0dcc318e377138dcbc116b5703d7dc1bffc0cc0f (diff) |
Common: Replace ip2nation by ip2location. (#21957)
Replace ip2nation by ip2location.
Download: https://lite.ip2location.com/database/ip-country
Diffstat (limited to 'src/server/authserver/Main.cpp')
-rw-r--r-- | src/server/authserver/Main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/authserver/Main.cpp b/src/server/authserver/Main.cpp index fa024d324ab..8ed74688372 100644 --- a/src/server/authserver/Main.cpp +++ b/src/server/authserver/Main.cpp @@ -31,6 +31,7 @@ #include "DatabaseEnv.h" #include "DatabaseLoader.h" #include "IoContext.h" +#include "IPLocation.h" #include "GitRevision.h" #include "MySQLThreading.h" #include "ProcessPriority.h" @@ -137,6 +138,9 @@ int main(int argc, char** argv) if (!StartDB()) return 1; + // Load IP Location Database + sIPLocation->Load(); + std::shared_ptr<void> dbHandle(nullptr, [](void*) { StopDB(); }); std::shared_ptr<Trinity::Asio::IoContext> ioContext = std::make_shared<Trinity::Asio::IoContext>(); |