We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 336b34f commit 20a4b82Copy full SHA for 20a4b82
src/BenchmarksApps/TLS/HttpSys/ConfigurationHelpers.cs
@@ -7,7 +7,7 @@ internal static class ConfigurationHelpers
7
public static SslProtocols ParseSslProtocols(string? supportedTlsVersions)
8
{
9
var protocols = SslProtocols.None;
10
- if (supportedTlsVersions is null)
+ if (string.IsNullOrEmpty(supportedTlsVersions))
11
12
return protocols;
13
}
@@ -27,6 +27,8 @@ public static SslProtocols ParseSslProtocols(string? supportedTlsVersions)
27
case "tls13":
28
protocols |= SslProtocols.Tls13;
29
break;
30
+ case "any":
31
+ return SslProtocols.None;
32
default:
33
throw new ArgumentException($"Unsupported TLS version: {version}");
34
0 commit comments