feat: http/1.x translation to http/2.0

This commit is contained in:
2025-02-08 16:53:32 +07:00
parent 1508ade537
commit bb6e4e2568
8 changed files with 216 additions and 57 deletions

View File

@ -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{