Skip to content

Commit

Permalink
fix a possible-null warning
Browse files Browse the repository at this point in the history
accidentally introduced in PR #917, somehow I overlooked the warning
  • Loading branch information
gbirchmeier committed Dec 31, 2024
1 parent 124e0fe commit 68b6fb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions QuickFIXn/Transport/StreamFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ internal static Stream CreateClientStream(IPEndPoint endpoint, SocketSettings se

if (!settings.SocketIgnoreProxy)
{
if (settings.ServerCommonName is null) {
throw new ConfigError(
$"{SessionSettings.SOCKET_IGNORE_PROXY}=Y needs {SessionSettings.SSL_SERVERNAME} to be set");
}
// If system has configured a proxy for this config, use it.
socket = CreateTunnelThruProxy(endpoint.Address.ToString(), endpoint.Port, settings.ServerCommonName);
}
Expand Down

0 comments on commit 68b6fb5

Please sign in to comment.