Core/Network: Simplify worldserver port configuration: removed InstanceServerPort

Port From (https://github.com/TrinityCore/TrinityCore/commit/039acb20e4c218757d6b9fc441dc2da6820dafd1)
This commit is contained in:
Hondacrx
2025-06-02 15:48:10 -04:00
parent 34edc91ec5
commit de0c4f2fe5
6 changed files with 3 additions and 29 deletions
-7
View File
@@ -259,16 +259,9 @@ namespace Game
int val = GetDefaultValue("WorldServerPort", 8085);
if (val != (int)Values[WorldCfg.PortWorld])
Log.outError(LogFilter.ServerLoading, "WorldServerPort option can't be changed at worldserver.conf reload, using current value ({0}).", Values[WorldCfg.PortWorld]);
val = GetDefaultValue("InstanceServerPort", 8086);
if (val != (int)Values[WorldCfg.PortInstance])
Log.outError(LogFilter.ServerLoading, "InstanceServerPort option can't be changed at worldserver.conf reload, using current value ({0}).", Values[WorldCfg.PortInstance]);
}
else
{
Values[WorldCfg.PortWorld] = GetDefaultValue("WorldServerPort", 8085);
Values[WorldCfg.PortInstance] = GetDefaultValue("InstanceServerPort", 8086);
}
// Config values are in "milliseconds" but we handle SocketTimeOut only as "seconds" so divide by 1000
Values[WorldCfg.SocketTimeoutTime] = GetDefaultValue("SocketTimeOutTime", 900000) / 1000;