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
+2 -1
View File
@@ -57,7 +57,6 @@ namespace Game.Networking
public WorldSocket(Socket socket) : base(socket)
{
_connectType = ConnectionType.Realm;
_serverChallenge = Array.Empty<byte>().GenerateRandomKey(32);
_worldCrypt = new WorldCrypt();
_encryptKey = new byte[32];
@@ -448,6 +447,8 @@ namespace Game.Networking
void HandleSendAuthSession()
{
_serverChallenge = Array.Empty<byte>().GenerateRandomKey(32);
AuthChallenge challenge = new();
challenge.Challenge = _serverChallenge;
challenge.DosChallenge = new byte[32].GenerateRandomKey(32);