diff options
Diffstat (limited to 'src/server/worldserver')
-rw-r--r-- | src/server/worldserver/Main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp index d56fa0156da..013b4b0f977 100644 --- a/src/server/worldserver/Main.cpp +++ b/src/server/worldserver/Main.cpp @@ -34,10 +34,10 @@ #include "GitRevision.h" #include "InstanceLockMgr.h" #include "IoContext.h" +#include "IpNetwork.h" #include "MapManager.h" #include "Metric.h" #include "MySQLThreading.h" -#include "ObjectAccessor.h" #include "OpenSSLCrypto.h" #include "OutdoorPvP/OutdoorPvPMgr.h" #include "ProcessPriority.h" @@ -290,6 +290,8 @@ extern int main(int argc, char** argv) if (vm.count("update-databases-only")) return 0; + Trinity::Net::ScanLocalNetworks(); + // Set server offline (not connectable) LoginDatabase.DirectPExecute("UPDATE realmlist SET flag = flag | {} WHERE id = '{}'", REALM_FLAG_OFFLINE, realm.Id.Realm); @@ -619,7 +621,6 @@ bool LoadRealmInfo() realm.Build = realmListRealm->Build; realm.ExternalAddress = std::make_unique<boost::asio::ip::address>(*realmListRealm->ExternalAddress); realm.LocalAddress = std::make_unique<boost::asio::ip::address>(*realmListRealm->LocalAddress); - realm.LocalSubnetMask = std::make_unique<boost::asio::ip::address>(*realmListRealm->LocalSubnetMask); realm.Port = realmListRealm->Port; realm.Name = realmListRealm->Name; realm.NormalizedName = realmListRealm->NormalizedName; |