Skip to content

Commit

Permalink
Add back http2 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
lmunro-at-shopify committed Apr 25, 2019
1 parent 856708d commit 591e2ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/webhook/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ func (s *Server) Start(stop <-chan struct{}) error {

cfg := &tls.Config{
Certificates: []tls.Certificate{cert},
NextProtos: []string{"h2"},
}

listener, err := tls.Listen("tcp", net.JoinHostPort(s.Host, strconv.Itoa(int(s.Port))), cfg)
Expand Down

0 comments on commit 591e2ba

Please sign in to comment.