Commit 7a8625c9 authored by wangmingming's avatar wangmingming

11

parent 21bcf2d0
......@@ -138,7 +138,6 @@ func NewClient(forWard ForwardItem) (Client, error) {
//tls_client.WithRandomTLSExtensionOrder(),
//tls_client.WithProxyUrl("http://user:pass@host:port"),
}
client, err := tls_client.NewHttpClient(tls_client.NewNoopLogger(), options...)
client.SetFollowRedirect(forWard.AllowRedirects)
if err != nil {
......
......@@ -55,6 +55,6 @@ func Forward(c *gin.Context) {
res["url"] = client.GetRespUrl()
res["text"] = client.GetText()
logrus.Infof("转发 %s %s %d 耗时 %s", forWard.Url, forWard.Proxy, client.GetStatusCode(), time.Now().Sub(t1).String())
logrus.Infof("%s 转发 %s %s %d 耗时 %s", client.TlsVersion, forWard.Url, forWard.Proxy, client.GetStatusCode(), time.Now().Sub(t1).String())
c.JSON(200, res)
}
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