feat: http/1.x translation to http/2.0
This commit is contained in:
@ -30,7 +30,7 @@ func NewServer(config ssh.ServerConfig) *Server {
|
||||
log.Fatal("Failed to load key pair:", err)
|
||||
}
|
||||
|
||||
tlsConfig := &tls.Config{Certificates: []tls.Certificate{cert}}
|
||||
tlsConfig := &tls.Config{Certificates: []tls.Certificate{cert}, NextProtos: []string{"h2"}}
|
||||
go httpServer.ListenTLS(tlsConfig)
|
||||
}
|
||||
return &Server{
|
||||
|
||||
Reference in New Issue
Block a user