sinmai-mods/DisableEncryption/Net/patch_NetHttpClient.cs
2024-08-08 13:32:25 +07:00

17 lines
458 B
C#

// ReSharper disable CheckNamespace
// ReSharper disable InconsistentNaming
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using MonoMod;
namespace Net;
public class patch_NetHttpClient : NetHttpClient
{
[MonoModReplace]
public new static bool CheckServerHash(object sender, X509Certificate certificate, X509Chain chain,
SslPolicyErrors sslPolicyErrors)
{
return true;
}
}