diff --git a/Assets/Mirror/Runtime/NetworkClient.cs b/Assets/Mirror/Runtime/NetworkClient.cs index bbbf7e19d..a3f1db548 100644 --- a/Assets/Mirror/Runtime/NetworkClient.cs +++ b/Assets/Mirror/Runtime/NetworkClient.cs @@ -318,7 +318,8 @@ static bool UnpackAndInvoke(NetworkReader reader, int channelId) } else { - Debug.LogError("Invalid message header."); + // => WARNING, not error. can happen if attacker sends random data. + Debug.LogWarning("Invalid message header."); // simply return false. caller is responsible for disconnecting. //connection.Disconnect(); return false; diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index 371354292..ae04aa11f 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -451,7 +451,8 @@ static bool UnpackAndInvoke(NetworkConnectionToClient connection, NetworkReader } else { - Debug.LogError($"Invalid message header for connection: {connection}."); + // => WARNING, not error. can happen if attacker sends random data. + Debug.LogWarning($"Invalid message header for connection: {connection}."); // simply return false. caller is responsible for disconnecting. //connection.Disconnect(); return false;