Initial RecNetPlugin

This commit is contained in:
Lapis
2026-04-01 09:19:01 -04:00
committed by Devin Zuczek
parent 6c9f4499e4
commit b29da5b5f0
15 changed files with 1440 additions and 517 deletions
+20
View File
@@ -0,0 +1,20 @@
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;
}
}
}