Skip to content

Commit

Permalink
Bypass external ip cert check
Browse files Browse the repository at this point in the history
  • Loading branch information
brian8544 committed Nov 27, 2023
1 parent 3deaa3f commit 99596b4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Launcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public static async ValueTask<string> PrepareGameLaunch(ParseResult commandLineR

await tcpClient.ConnectAsync(portal.HostName, portal.Port, tcpClientTimeout.Token);

// Commented out certificate validation code
/*
using var sslStream = new SslStream(tcpClient.GetStream(), false,
(_, _, _, sslPolicyErrors) =>
{
Expand All @@ -137,6 +139,7 @@ public static async ValueTask<string> PrepareGameLaunch(ParseResult commandLineR
);
sslStream.AuthenticateAsClient(portal.HostName);
*/
}
catch (Exception exception) when (exception is SocketException or OperationCanceledException)
{
Expand All @@ -146,6 +149,7 @@ public static async ValueTask<string> PrepareGameLaunch(ParseResult commandLineR

return string.Empty;
}
/*
catch (AuthenticationException)
{
Console.ForegroundColor = ConsoleColor.Yellow;
Expand All @@ -156,6 +160,7 @@ public static async ValueTask<string> PrepareGameLaunch(ParseResult commandLineR
return string.Empty;
}
*/
}

return gameBinaryPath;
Expand Down

0 comments on commit 99596b4

Please sign in to comment.