Skip to content

Commit a28a263

Browse files
authored
Merge pull request #826 from yue9944882/add-h2-support
Adds http2 support
2 parents 332f586 + ea818ef commit a28a263

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)