Commit b281aa38 authored by wang's avatar wang

Merge remote-tracking branch 'origin/cronet' into cronet

parents 4fc7ae74 b193c9bd
File added
...@@ -149,6 +149,7 @@ func NewClient(forWard ForwardItem, ios bool) (Client, error) { ...@@ -149,6 +149,7 @@ func NewClient(forWard ForwardItem, ios bool) (Client, error) {
engineParams.SetEnableHTTP2(true) engineParams.SetEnableHTTP2(true)
engineParams.SetEnableQuic(false) engineParams.SetEnableQuic(false)
engineParams.SetEnableBrotli(true) engineParams.SetEnableBrotli(true)
engineParams.SetEnableCheckResult(false)
t := cronet.NewCronetTransport(engineParams, true) t := cronet.NewCronetTransport(engineParams, true)
//t.Engine.StartNetLogToFile("./1.log", true) //t.Engine.StartNetLogToFile("./1.log", true)
//ConfigureClientCertificate(&t.Engine, certPath, keyPath, []string{urlArg.Host, proxyArg.Host}) //ConfigureClientCertificate(&t.Engine, certPath, keyPath, []string{urlArg.Host, proxyArg.Host})
......
...@@ -79,7 +79,7 @@ func Forward(c *gin.Context) { ...@@ -79,7 +79,7 @@ func Forward(c *gin.Context) {
return return
} }
logrus.Infof("开始转发 url: %s proxy: %s", forWard.Url, forWard.Proxy) logrus.Infof("开始转发 url: %s proxy: %s", forWard.Url, forWard.Proxy)
fmt.Sprintf("%v\n", forWard.Headers)
t1 := time.Now() t1 := time.Now()
// 开始转发 // 开始转发
client, err := NewClient(forWard, false) client, err := NewClient(forWard, false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment