Skip to content

Commit ea818ef

Browse files
committed
adds http2 support
Signed-off-by: Min Jin <minkimzz@amazon.com>
1 parent 332f586 commit ea818ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/server/server.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ func New(cfg config.Config, stopCh <-chan struct{}) *Server {
133133
listener, err := tls.Listen("tcp", c.ListenAddr(), &tls.Config{
134134
MinVersion: tls.VersionTLS12,
135135
Certificates: []tls.Certificate{*cert},
136+
NextProtos: []string{"h2", "http/1.1"},
136137
})
137138
if err != nil {
138139
logrus.WithError(err).Fatal("could not open TLS listener")

0 commit comments

Comments
 (0)