Skip to content

Commit cb34b22

Browse files
committed
Fixed NetConfigHash length
1 parent 2f5cace commit cb34b22

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

MLAPI/Data/NetworkConfig.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using MLAPI.Data.Transports.UNET;
44
using System;
55
using System.Collections.Generic;
6-
using System.Security.Cryptography;
76
using UnityEngine;
87

98
namespace MLAPI.Data

MLAPI/NetworkingManagerComponents/Core/InternalMessageHandler.Receive.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ internal static void HandleConnectionRequest(uint clientId, byte[] incommingData
1313
{
1414
BitReader reader = new BitReader(incommingData);
1515

16-
byte[] configHash = reader.ReadByteArray(32);
16+
byte[] configHash = reader.ReadByteArray(20);
1717
if (!netManager.NetworkConfig.CompareConfig(configHash))
1818
{
1919
Debug.LogWarning("MLAPI: NetworkConfiguration missmatch. The configuration between the server and client does not match.");

0 commit comments

Comments
 (0)