File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
src/BenchmarksApps/TLS/Kestrel Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -197,9 +197,9 @@ static IPEndPoint CreateIPEndPoint(UrlPrefix urlPrefix)
197
197
static SslProtocols ? ParseSslProtocols ( string ? supportedTlsVersions )
198
198
{
199
199
var protocols = SslProtocols . None ;
200
- if ( string . IsNullOrEmpty ( supportedTlsVersions ) )
200
+ if ( string . IsNullOrEmpty ( supportedTlsVersions ) || supportedTlsVersions == "any" )
201
201
{
202
- return protocols ;
202
+ return null ;
203
203
}
204
204
205
205
foreach ( var version in supportedTlsVersions . Split ( ',' ) )
@@ -217,8 +217,6 @@ static IPEndPoint CreateIPEndPoint(UrlPrefix urlPrefix)
217
217
case "tls13" :
218
218
protocols |= SslProtocols . Tls13 ;
219
219
break ;
220
- case "any" :
221
- return null ;
222
220
default :
223
221
throw new ArgumentException ( $ "Unsupported TLS version: { version } ") ;
224
222
}
You can’t perform that action at this time.
0 commit comments