fix: Set http2 based on prop

This commit is contained in:
Hein
2026-06-30 13:29:55 +02:00
parent bbb2c6d127
commit 3dac55cb19
+4
View File
@@ -486,6 +486,10 @@ func newInstance(cfg Config) (*serverInstance, error) {
if httpServer.HTTP2 == nil {
httpServer.HTTP2 = &http.HTTP2Config{}
}
httpServer.Protocols.SetHTTP2(true)
httpServer.Protocols.SetUnencryptedHTTP2(true)
} else {
httpServer.Protocols.SetHTTP2(false)
}
gracefulSrv := &gracefulServer{