This commit is contained in:
Lapis
2026-04-01 09:16:28 -04:00
commit 6c9f4499e4
6 changed files with 530 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
using HarmonyLib;
using Org.BouncyCastle.Crypto.Tls;
namespace CannedNet.Client.Patches;
public class FuckOffTLS
{
[HarmonyPatch(typeof(LegacyTlsAuthentication), "NotifyServerCertificate")]
public class TlsPatch
{
private static bool Prefix()
{
return false;
}
}
}
@@ -0,0 +1,19 @@
using BestHTTP;
using HarmonyLib;
namespace CannedNet.Client.Patches;
public class SendRequestPatch
{
[HarmonyPatch(typeof(HTTPManager), "SendRequest", [typeof(HTTPRequest)])]
public class ConnectToRecNetPatch
{
private static void Prefix(ref HTTPRequest request)
{
Plugin.Log.LogInfo($"hi {request.Uri.Host}");
if (request.Uri.Host.ToString().Contains("ns.rec.net"))
request.Uri = new Il2CppSystem.Uri("https://ns.lapis.codes");
}
}
}