From ea1ca187ab242eab4895528a5d77aafed6caf661 Mon Sep 17 00:00:00 2001 From: Stavros Kontopoulos Date: Mon, 23 Oct 2023 17:29:20 +0300 Subject: [PATCH] add comment --- webhook/webhook.go | 1 + 1 file changed, 1 insertion(+) diff --git a/webhook/webhook.go b/webhook/webhook.go index a8060427df..eff693e80d 100644 --- a/webhook/webhook.go +++ b/webhook/webhook.go @@ -256,6 +256,7 @@ func (wh *Webhook) Run(stop <-chan struct{}) error { QuietPeriod: wh.Options.GracePeriod, } + // If TLSNextProto is not nil, HTTP/2 support is not enabled automatically. nextProto := map[string]func(*http.Server, *tls.Conn, http.Handler){} if wh.Options.EnableHTTP2 { nextProto = nil