mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Game: Include cleanup, part 4 - packets and largest headers (after preprocessing, except player/objectmgr)
This commit is contained in:
@@ -282,6 +282,7 @@ extern int main(int argc, char** argv)
|
||||
|
||||
// Launch the worldserver listener socket
|
||||
uint16 worldPort = uint16(sWorld->getIntConfig(CONFIG_PORT_WORLD));
|
||||
uint16 instancePort = uint16(sWorld->getIntConfig(CONFIG_PORT_INSTANCE));
|
||||
std::string worldListener = sConfigMgr->GetStringDefault("BindIP", "0.0.0.0");
|
||||
|
||||
int networkThreads = sConfigMgr->GetIntDefault("Network.Threads", 1);
|
||||
@@ -292,7 +293,7 @@ extern int main(int argc, char** argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!sWorldSocketMgr.StartNetwork(*ioService, worldListener, worldPort, networkThreads))
|
||||
if (!sWorldSocketMgr.StartWorldNetwork(*ioService, worldListener, worldPort, instancePort, networkThreads))
|
||||
{
|
||||
TC_LOG_ERROR("server.worldserver", "Failed to initialize network");
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user