mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
update for touka-httpc 0.4.0
This commit is contained in:
parent
d6d54b222f
commit
8af107c584
4 changed files with 42 additions and 15 deletions
5
main.go
5
main.go
|
|
@ -26,6 +26,8 @@ import (
|
|||
"github.com/cloudwego/hertz/pkg/common/adaptor"
|
||||
"github.com/cloudwego/hertz/pkg/common/hlog"
|
||||
|
||||
//"github.com/cloudwego/hertz/pkg/network/standard"
|
||||
|
||||
"github.com/hertz-contrib/http2/factory"
|
||||
)
|
||||
|
||||
|
|
@ -146,6 +148,7 @@ func setupHertZLogger(cfg *config.Config) {
|
|||
} else {
|
||||
hlog.SetOutput(hertZfile)
|
||||
}
|
||||
hlog.SetLevel(hlog.LevelInfo)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -377,6 +380,8 @@ func main() {
|
|||
r = server.New(
|
||||
server.WithHostPorts(addr),
|
||||
server.WithH2C(true),
|
||||
// server.WithALPN(true),
|
||||
// server.WithTransport(standard.NewTransporter),
|
||||
)
|
||||
r.AddProtocol("h2", factory.NewServerFactory())
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue