Skip to content

Commit 20a4b82

Browse files
committed
rollback the tls registry to enabled all
1 parent 336b34f commit 20a4b82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/BenchmarksApps/TLS/HttpSys/ConfigurationHelpers.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ internal static class ConfigurationHelpers
77
public static SslProtocols ParseSslProtocols(string? supportedTlsVersions)
88
{
99
var protocols = SslProtocols.None;
10-
if (supportedTlsVersions is null)
10+
if (string.IsNullOrEmpty(supportedTlsVersions))
1111
{
1212
return protocols;
1313
}
@@ -27,6 +27,8 @@ public static SslProtocols ParseSslProtocols(string? supportedTlsVersions)
2727
case "tls13":
2828
protocols |= SslProtocols.Tls13;
2929
break;
30+
case "any":
31+
return SslProtocols.None;
3032
default:
3133
throw new ArgumentException($"Unsupported TLS version: {version}");
3234
}

0 commit comments

Comments
 (0)