We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a125559 commit 03cb357Copy full SHA for 03cb357
1 file changed
Robust.Shared/Network/NetManager.cs
@@ -961,7 +961,7 @@ private bool DispatchNetMessage(NetIncomingMessage msg)
961
}
962
963
// Attempt to decrypt the message, only logging if we fail to decrypt and we actually have encryption.
964
- if ((!channel.Encryption?.TryDecrypt(msg)) ?? true)
+ if ((!channel.Encryption?.TryDecrypt(msg)) ?? false)
965
{
966
if (_logPacketIssues)
967
_logger.Debug($"{msg.SenderConnection.RemoteEndPoint}: Got a packet that fails to decrypt.");
0 commit comments