From 59c3773995ba42b1bf8b8c91e0b8a880d702ed3b Mon Sep 17 00:00:00 2001 From: Regalis Date: Sun, 4 Sep 2016 21:08:54 +0300 Subject: [PATCH] Linux clients can join other servers again --- Lidgren.Network/Platform/PlatformConstrained.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lidgren.Network/Platform/PlatformConstrained.cs b/Lidgren.Network/Platform/PlatformConstrained.cs index 77ff6c5c1..3b0b6fd3b 100644 --- a/Lidgren.Network/Platform/PlatformConstrained.cs +++ b/Lidgren.Network/Platform/PlatformConstrained.cs @@ -66,7 +66,7 @@ namespace Lidgren.Network return new IPAddress(bytes); } - private static readonly SHA1 s_sha = SHA1.Create(); + private static readonly SHA256 s_sha = SHA256.Create(); public static byte[] ComputeSHAHash(byte[] bytes, int offset, int count) { return s_sha.ComputeHash(bytes, offset, count);