aboutsummaryrefslogtreecommitdiff
path: root/src/server/worldserver/Main.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-01-07 13:41:09 +0100
committerShauren <shauren.trinity@gmail.com>2025-01-07 13:41:09 +0100
commit039acb20e4c218757d6b9fc441dc2da6820dafd1 (patch)
tree81cbe8a277bf570f540b91a8ec272fcef0246d61 /src/server/worldserver/Main.cpp
parent19aef6882d4ec21f790b67d94a6bd039970156a6 (diff)
Core/Network: Simplify worldserver port configuration: removed InstanceServerPort
Diffstat (limited to 'src/server/worldserver/Main.cpp')
-rw-r--r--src/server/worldserver/Main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/worldserver/Main.cpp b/src/server/worldserver/Main.cpp
index 1fe898e6c1b..a482d109890 100644
--- a/src/server/worldserver/Main.cpp
+++ b/src/server/worldserver/Main.cpp
@@ -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);