This commit is contained in:
wjqserver 2025-04-15 15:05:36 +08:00
parent f110c96c1f
commit 254c9a8bad
2 changed files with 4 additions and 4 deletions

View file

@ -1 +1 @@
25w28b 25w29t-1

View file

@ -26,7 +26,7 @@ import (
"github.com/cloudwego/hertz/pkg/common/adaptor" "github.com/cloudwego/hertz/pkg/common/adaptor"
"github.com/cloudwego/hertz/pkg/common/hlog" "github.com/cloudwego/hertz/pkg/common/hlog"
//"github.com/cloudwego/hertz/pkg/network/standard" "github.com/cloudwego/hertz/pkg/network/standard"
"github.com/hertz-contrib/http2/factory" "github.com/hertz-contrib/http2/factory"
) )
@ -379,7 +379,7 @@ func main() {
server.WithHostPorts(addr), server.WithHostPorts(addr),
server.WithH2C(true), server.WithH2C(true),
// server.WithALPN(true), // server.WithALPN(true),
// server.WithTransport(standard.NewTransporter), server.WithTransport(standard.NewTransporter),
) )
r.AddProtocol("h2", factory.NewServerFactory()) r.AddProtocol("h2", factory.NewServerFactory())
} else { } else {