mirror of
https://gitea.tendokyu.moe/beerpsi/sinmai-mods.git
synced 2024-11-27 17:10:48 +01:00
17 lines
458 B
C#
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;
|
|
}
|
|
} |