diff --git a/Reactor/Networking/Patches/AuthPatches.cs b/Reactor/Networking/Patches/AuthPatches.cs index caa5c91..435ebdc 100644 --- a/Reactor/Networking/Patches/AuthPatches.cs +++ b/Reactor/Networking/Patches/AuthPatches.cs @@ -6,11 +6,11 @@ namespace Reactor.Networking.Patches internal static class AuthPatches { [HarmonyPatch(typeof(X509Certificate2Collection), nameof(X509Certificate2Collection.Contains))] - public static class AcceptCustomerCertificatesPatch + public static class AcceptCustomCertificatesPatch { public static bool Prefix(X509Certificate2Collection __instance, ref bool __result) { - if (AuthManager.Instance && AuthManager.Instance.connection != null && AuthManager.Instance.connection.serverCertificates == __instance) + if (AuthManager.Instance && AuthManager.Instance.connection != null && AuthManager.Instance.connection.serverCertificates.Equals(__instance)) { __result = true; return false;