File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/BenchmarksApps/TLS/HttpSys Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 19
19
20
20
// endpoints
21
21
var listeningEndpoints = builder . Configuration [ "urls" ] ?? "https://localhost:5000/" ;
22
- var httpsIpPort = listeningEndpoints . Split ( ";" ) . First ( x => x . Contains ( "https" ) ) . Replace ( "https://" , "" ) ;
22
+ var httpsIpPort = listeningEndpoints . Split ( ";" ) . FirstOrDefault ( x => x . Contains ( "https" ) ) ? . Replace ( "https://" , "" ) ;
23
23
24
24
// debug
25
25
var writeCertValidationEventsToConsole = bool . TryParse ( builder . Configuration [ "certValidationConsoleEnabled" ] , out var certValidationConsoleEnabled ) && certValidationConsoleEnabled ;
29
29
if ( ! httpOnly )
30
30
{
31
31
var sslCertConfiguration = NetshConfigurator . PreConfigureNetsh (
32
- httpsIpPort ,
32
+ httpsIpPort ! ,
33
33
certPublicKeyLength : certPublicKeyLength ,
34
34
clientCertNegotiation : mTlsEnabled ? NetShFlag . Enable : NetShFlag . Disabled ,
35
35
disablesessionid : NetShFlag . Enable ,
134
134
135
135
if ( ! httpOnly )
136
136
{
137
- NetshConfigurator . LogCurrentSslCertBinding ( httpsIpPort ) ;
137
+ NetshConfigurator . LogCurrentSslCertBinding ( httpsIpPort ! ) ;
138
138
}
139
139
140
140
Console . WriteLine ( "Application Info:" ) ;
You can’t perform that action at this time.
0 commit comments