Core: Updated to 11.1.7
Port From (https://github.com/TrinityCore/TrinityCore/commit/ceb8d561b44579118b109a9ff71ba415df53bbdc)
This commit is contained in:
@@ -370,8 +370,8 @@ namespace Game.Networking.Packets
|
||||
|
||||
class EnterEncryptedMode : ServerPacket
|
||||
{
|
||||
byte[] EncryptionKey;
|
||||
int RegionGroup;
|
||||
byte[] EncryptionKey;
|
||||
bool Enabled;
|
||||
static byte[] expandedPrivateKey;
|
||||
|
||||
@@ -404,8 +404,8 @@ namespace Game.Networking.Packets
|
||||
toSign.Process(BitConverter.GetBytes(Enabled), 1);
|
||||
toSign.Finish(EnableEncryptionSeed, 16);
|
||||
|
||||
_worldPacket.WriteBytes(Ed25519.Sign(toSign.Digest, expandedPrivateKey, 0, EnableEncryptionContext));
|
||||
_worldPacket.WriteInt32(RegionGroup);
|
||||
_worldPacket.WriteBytes(Ed25519.Sign(toSign.Digest, expandedPrivateKey, 0, EnableEncryptionContext));
|
||||
_worldPacket.WriteBit(Enabled);
|
||||
_worldPacket.FlushBits();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user