Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
skonto committed Oct 23, 2023
1 parent 4269f48 commit 7af1062
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webhook/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7af1062

Please sign in to comment.