Unverified Commit e6d9745b authored by honfika's avatar honfika Committed by GitHub

Merge pull request #764 from justcoding121/master

stable
parents 35edb898 0052e4ac
...@@ -546,7 +546,32 @@ retry: ...@@ -546,7 +546,32 @@ retry:
stream?.Dispose(); stream?.Dispose();
tcpServerSocket?.Close(); tcpServerSocket?.Close();
enabledSslProtocols = SslProtocols.Tls; // Specifying Tls11 and/or Tls12 will disable the usage of Ssl3, even if it has been included.
// https://docs.microsoft.com/en-us/dotnet/api/system.servicemodel.tcptransportsecurity.sslprotocols?view=dotnet-plat-ext-3.1
enabledSslProtocols = proxyServer.SupportedSslProtocols & (SslProtocols)0xff;
if (enabledSslProtocols == SslProtocols.None)
{
throw;
}
retry = false;
goto retry;
}
catch (AuthenticationException ex) when (ex.HResult == unchecked((int)0x80131501) && retry && enabledSslProtocols >= SslProtocols.Tls11)
{
stream?.Dispose();
tcpServerSocket?.Close();
// Specifying Tls11 and/or Tls12 will disable the usage of Ssl3, even if it has been included.
// https://docs.microsoft.com/en-us/dotnet/api/system.servicemodel.tcptransportsecurity.sslprotocols?view=dotnet-plat-ext-3.1
enabledSslProtocols = proxyServer.SupportedSslProtocols & (SslProtocols)0xff;
if (enabledSslProtocols == SslProtocols.None)
{
throw;
}
retry = false; retry = false;
goto retry; goto retry;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment