From 2fe4ab94c52ad2fa90189ecd9c053da49f06561e Mon Sep 17 00:00:00 2001 From: Gooyeth <566327+Gooyeth@users.noreply.github.com> Date: Fri, 22 Jun 2018 17:32:39 -0600 Subject: Common: Replace ip2nation by ip2location. (#21957) Replace ip2nation by ip2location. Download: https://lite.ip2location.com/database/ip-country --- src/server/authserver/Main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/server/authserver/Main.cpp') 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 dbHandle(nullptr, [](void*) { StopDB(); }); std::shared_ptr ioContext = std::make_shared(); -- cgit v1.2.3