Skip to content

Commit

Permalink
rollback the tls registry to enabled all
Browse files Browse the repository at this point in the history
  • Loading branch information
DeagleGross committed Jan 20, 2025
1 parent 336b34f commit 20a4b82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/BenchmarksApps/TLS/HttpSys/ConfigurationHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ internal static class ConfigurationHelpers
public static SslProtocols ParseSslProtocols(string? supportedTlsVersions)
{
var protocols = SslProtocols.None;
if (supportedTlsVersions is null)
if (string.IsNullOrEmpty(supportedTlsVersions))
{
return protocols;
}
Expand All @@ -27,6 +27,8 @@ public static SslProtocols ParseSslProtocols(string? supportedTlsVersions)
case "tls13":
protocols |= SslProtocols.Tls13;
break;
case "any":
return SslProtocols.None;
default:
throw new ArgumentException($"Unsupported TLS version: {version}");
}
Expand Down

0 comments on commit 20a4b82

Please sign in to comment.