mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
UnpackAndInvoke: invalid message header errors changed to warnings. it can happen if an attacker sends random data.
This commit is contained in:
parent
2026b6038b
commit
f67704bbd9
@ -318,7 +318,8 @@ static bool UnpackAndInvoke(NetworkReader reader, int channelId)
|
|||||||
}
|
}
|
||||||
else
|
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.
|
// simply return false. caller is responsible for disconnecting.
|
||||||
//connection.Disconnect();
|
//connection.Disconnect();
|
||||||
return false;
|
return false;
|
||||||
|
@ -451,7 +451,8 @@ static bool UnpackAndInvoke(NetworkConnectionToClient connection, NetworkReader
|
|||||||
}
|
}
|
||||||
else
|
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.
|
// simply return false. caller is responsible for disconnecting.
|
||||||
//connection.Disconnect();
|
//connection.Disconnect();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user