mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
25w29t-1
This commit is contained in:
parent
f110c96c1f
commit
254c9a8bad
2 changed files with 4 additions and 4 deletions
6
main.go
6
main.go
|
|
@ -26,7 +26,7 @@ import (
|
|||
"github.com/cloudwego/hertz/pkg/common/adaptor"
|
||||
"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"
|
||||
)
|
||||
|
||||
|
|
@ -378,8 +378,8 @@ func main() {
|
|||
r = server.New(
|
||||
server.WithHostPorts(addr),
|
||||
server.WithH2C(true),
|
||||
// server.WithALPN(true),
|
||||
// server.WithTransport(standard.NewTransporter),
|
||||
// server.WithALPN(true),
|
||||
server.WithTransport(standard.NewTransporter),
|
||||
)
|
||||
r.AddProtocol("h2", factory.NewServerFactory())
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue