Skip to content

Commit 7856693

Browse files
committed
dont register callback from TlsClientHelloBytesCallback to not have duplicate registration
1 parent 4f87edd commit 7856693

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/Servers/Kestrel/Core/src/ListenOptionsHttpsExtensions.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,6 @@ public static ListenOptions UseHttps(this ListenOptions listenOptions, TlsHandsh
270270
listenOptions.IsTls = true;
271271
listenOptions.HttpsCallbackOptions = callbackOptions;
272272

273-
if (listenOptions.HttpsOptions?.TlsClientHelloBytesCallback is not null)
274-
{
275-
listenOptions.Use(next =>
276-
{
277-
var middleware = new TlsListenerMiddleware(next, listenOptions.HttpsOptions.TlsClientHelloBytesCallback);
278-
return middleware.OnTlsClientHelloAsync;
279-
});
280-
}
281-
282273
listenOptions.Use(next =>
283274
{
284275
// Set the list of protocols from listen options.

0 commit comments

Comments
 (0)