Fix auth patch

This commit is contained in:
js6pak committed 2021-04-13 17:05:35 +02:00
1 parent 339ee008ff
commit ae213c6b37
1 file changed
+2 -2
+2 -2
View File
@@ -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;