mirror of
https://gitea.tendokyu.moe/beerpsi/sinmai-mods.git
synced 2025-02-16 02:32:39 +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;
|
|||
|
}
|
|||
|
}
|