Skip to content

Commit

Permalink
Merge pull request #56 from rcelyte/fix-enet-ssl
Browse files Browse the repository at this point in the history
Allow custom servers when using DisableSsl=false
  • Loading branch information
michael-r-elp authored Nov 9, 2024
2 parents d4f86ec + 0358cf3 commit 8aef5de
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions MultiplayerCore/Patchers/NetworkConfigPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,10 @@ private bool ValidateCertificateChain()
[AffinityPatch(typeof(IgnoranceClient), "Start")]
private void PrefixIgnoranceClientStart(IgnoranceClient __instance)
{
if (!DisableSsl)
return;

__instance.UseSsl = false;
__instance.ValidateCertificate = false;
if (DisableSsl)
__instance.UseSsl = false;
if (IsOverridingApi)
__instance.ValidateCertificate = false;
}
}
}

0 comments on commit 8aef5de

Please sign in to comment.