Skip to content

Commit 03cb357

Browse files
authored
The damage one typo can do. (space-wizards#6492)
1 parent a125559 commit 03cb357

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Robust.Shared/Network/NetManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ private bool DispatchNetMessage(NetIncomingMessage msg)
961961
}
962962

963963
// Attempt to decrypt the message, only logging if we fail to decrypt and we actually have encryption.
964-
if ((!channel.Encryption?.TryDecrypt(msg)) ?? true)
964+
if ((!channel.Encryption?.TryDecrypt(msg)) ?? false)
965965
{
966966
if (_logPacketIssues)
967967
_logger.Debug($"{msg.SenderConnection.RemoteEndPoint}: Got a packet that fails to decrypt.");

0 commit comments

Comments
 (0)