mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Network: Simplify worldserver port configuration: removed InstanceServerPort
This commit is contained in:
@@ -388,7 +388,6 @@ 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);
|
||||
@@ -400,7 +399,7 @@ int main(int argc, char** argv)
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (!sWorldSocketMgr.StartWorldNetwork(*ioContext, worldListener, worldPort, instancePort, networkThreads))
|
||||
if (!sWorldSocketMgr.StartNetwork(*ioContext, worldListener, worldPort, networkThreads))
|
||||
{
|
||||
TC_LOG_ERROR("server.worldserver", "Failed to initialize network");
|
||||
World::StopNow(ERROR_EXIT_CODE);
|
||||
|
||||
Reference in New Issue
Block a user