@@ -55,16 +55,6 @@ public IPEndPoint V4HttpEndpoint
55
55
get ;
56
56
}
57
57
58
- /// <summary>
59
- /// Gets the IPV4 endpoint where HTTPS connections are being received. This will be ANY:0
60
- /// until Start has been called.
61
- /// </summary>
62
- public IPEndPoint V4HttpsEndpoint
63
- {
64
- private set ;
65
- get ;
66
- }
67
-
68
58
/// <summary>
69
59
/// Gets the IPV6 endpoint where HTTP connections are being received. This will be ANY:0
70
60
/// until Start has been called.
@@ -75,16 +65,6 @@ public IPEndPoint V6HttpEndpoint
75
65
get ;
76
66
}
77
67
78
- /// <summary>
79
- /// Gets the IPV6 endpoint where HTTPS connections are being received. This will be ANY:0
80
- /// until Start has been called.
81
- /// </summary>
82
- public IPEndPoint V6HttpsEndpoint
83
- {
84
- private set ;
85
- get ;
86
- }
87
-
88
68
/// <summary>
89
69
/// Gets whether or not the server is currently running.
90
70
/// </summary>
@@ -194,30 +174,26 @@ public void Start(int numThreads = 0)
194
174
195
175
// Create the public, v4 proxy.
196
176
IPEndPoint v4HttpEndpoint = null ;
197
- IPEndPoint v4HttpsEndpoint = null ;
198
177
199
178
var publicV4Startup = new PublicServerStartup ( null , _httpResponseFactory ) ;
200
- var publicV4Host = CreateHost < PublicServerStartup > ( false , false , out v4HttpEndpoint , out v4HttpsEndpoint , publicV4Startup ) ;
179
+ var publicV4Host = CreateHost < PublicServerStartup > ( false , false , out v4HttpEndpoint , publicV4Startup ) ;
201
180
202
181
V4HttpEndpoint = v4HttpEndpoint ;
203
- V4HttpsEndpoint = v4HttpsEndpoint ;
204
182
205
183
// Create the public, v6 proxy.
206
184
IPEndPoint v6HttpEndpoint = null ;
207
- IPEndPoint v6HttpsEndpoint = null ;
208
185
209
186
var publicV6Startup = new PublicServerStartup ( null , _httpResponseFactory ) ;
210
- var publicV6Host = CreateHost < PublicServerStartup > ( false , true , out v6HttpEndpoint , out v6HttpsEndpoint , publicV6Startup ) ;
187
+ var publicV6Host = CreateHost < PublicServerStartup > ( false , true , out v6HttpEndpoint , publicV6Startup ) ;
211
188
212
189
V6HttpEndpoint = v6HttpEndpoint ;
213
- V6HttpsEndpoint = v6HttpsEndpoint ;
214
190
215
191
// Create the private, v4 replay proxy
216
192
IPEndPoint privateV4HttpEndpoint = null ;
217
193
IPEndPoint privateV4HttpsEndpoint = null ;
218
194
219
195
var privateV4Startup = new PrivateServerStartup ( null , _replayResponseFactory ) ;
220
- var privateV4Host = CreateHost < PrivateServerStartup > ( true , false , out privateV4HttpEndpoint , out privateV4HttpsEndpoint , privateV4Startup ) ;
196
+ var privateV4Host = CreateHost < PrivateServerStartup > ( true , false , out privateV4HttpEndpoint , privateV4Startup ) ;
221
197
222
198
_replayResponseFactory . V4HttpEndpoint = privateV4HttpEndpoint ;
223
199
_replayResponseFactory . V4HttpsEndpoint = privateV4HttpsEndpoint ;
@@ -231,9 +207,9 @@ public void Start(int numThreads = 0)
231
207
232
208
_diverter = CreateDiverter (
233
209
V4HttpEndpoint ,
234
- V4HttpsEndpoint ,
210
+ V4HttpEndpoint ,
235
211
V6HttpEndpoint ,
236
- V6HttpsEndpoint
212
+ V6HttpEndpoint
237
213
) ;
238
214
239
215
_diverter . ConfirmDenyFirewallAccess = ( procPath ) =>
@@ -369,9 +345,6 @@ protected virtual bool CertificateVerificationHandler(object sender, X509Certifi
369
345
/// <param name="boundHttpEndpoint">
370
346
/// The endpoint that the HTTP host was bound to.
371
347
/// </param>
372
- /// <param name="boundHttpsEndpoint">
373
- /// The endpoint that the HTTPS host was bound to.
374
- /// </param>
375
348
/// <param name="startupInsance">
376
349
/// The startup instance to use for the server.
377
350
/// </param>
@@ -382,12 +355,11 @@ protected virtual bool CertificateVerificationHandler(object sender, X509Certifi
382
355
/// In the event that the internal kestrel engine doesn't properly initialize, this method
383
356
/// will throw.
384
357
/// </exception>
385
- private IWebHost CreateHost < T > ( bool isPrivate , bool isV6 , out IPEndPoint boundHttpEndpoint , out IPEndPoint boundHttpsEndpoint , IStartup startupInsance ) where T : class
358
+ private IWebHost CreateHost < T > ( bool isPrivate , bool isV6 , out IPEndPoint boundHttpEndpoint , IStartup startupInsance ) where T : class
386
359
{
387
360
WebHostBuilder ipWebhostBuilder = new WebHostBuilder ( ) ;
388
361
389
362
ListenOptions httpListenOptions = null ;
390
- ListenOptions httpsListenOptions = null ;
391
363
392
364
ipWebhostBuilder . UseSockets ( opts =>
393
365
{
@@ -418,21 +390,6 @@ private IWebHost CreateHost<T>(bool isPrivate, bool isV6, out IPEndPoint boundHt
418
390
// https://github.com/aspnet/Docs/issues/5242#issuecomment-380863456
419
391
// listenOpts.Protocols = HttpProtocols.Http1;
420
392
421
- httpsListenOptions = listenOpts ;
422
- } ) ;
423
-
424
- // Listen for HTTP connections. Keep a reference to the options object so we can get
425
- // the chosen port number after we call start.
426
- opts . Listen ( isV6 ? IPAddress . IPv6Any : IPAddress . Any , 0 , listenOpts =>
427
- {
428
- // Who doesn't love to kick that old Nagle to the curb?
429
- listenOpts . NoDelay = true ;
430
-
431
- // HTTP 2 got cut last minute from 2.1 and MS speculates that it may take several
432
- // releases to get it properly included.
433
- // https://github.com/aspnet/Docs/issues/5242#issuecomment-380863456
434
- // listenOpts.Protocols = HttpProtocols.Http1;
435
-
436
393
httpListenOptions = listenOpts ;
437
394
} ) ;
438
395
} ) ;
@@ -465,7 +422,6 @@ private IWebHost CreateHost<T>(bool isPrivate, bool isV6, out IPEndPoint boundHt
465
422
if ( httpListenOptions != null )
466
423
{
467
424
boundHttpEndpoint = httpListenOptions . IPEndPoint ;
468
- boundHttpsEndpoint = httpsListenOptions . IPEndPoint ;
469
425
}
470
426
else
471
427
{
0 commit comments