mirror of
https://github.com/djdevin/recnet-plugin.git
synced 2026-09-08 06:31:29 -07:00
21 lines
450 B
C#
21 lines
450 B
C#
using HarmonyLib;
|
|
using Org.BouncyCastle.Crypto.Tls;
|
|
|
|
namespace RecNetPlugin.Patches;
|
|
|
|
/**
|
|
Disables TLS certificate pinning. Even though we connect over SSL it seems some certificates
|
|
might be pinned.
|
|
*/
|
|
public class DisableTLSPinning
|
|
{
|
|
[HarmonyPatch(typeof(LegacyTlsAuthentication), "NotifyServerCertificate")]
|
|
public class TlsPatch
|
|
{
|
|
private static bool Prefix()
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
}
|