Commit 6eaa2127 authored by wang's avatar wang

每次请求后关闭连接

parent abb940f7
...@@ -158,13 +158,13 @@ func NewClient(forWard ForwardItem, ios bool) (Client, error) { ...@@ -158,13 +158,13 @@ func NewClient(forWard ForwardItem, ios bool) (Client, error) {
tls_client.WithProxyUrl(forWard.Proxy), tls_client.WithProxyUrl(forWard.Proxy),
//tls_client.WithForceHttp1(), //tls_client.WithForceHttp1(),
tls_client.WithCookieJar(jar), tls_client.WithCookieJar(jar),
//tls_client.WithRandomTLSExtensionOrder(), tls_client.WithRandomTLSExtensionOrder(),
//tls_client.WithProxyUrl("http://user:pass@host:port"), //tls_client.WithProxyUrl("http://user:pass@host:port"),
tls_client.WithInsecureSkipVerify(), tls_client.WithInsecureSkipVerify(),
} }
if forWard.RandomTls { //if forWard.RandomTls {
options = append(options, tls_client.WithRandomTLSExtensionOrder()) options = append(options, tls_client.WithRandomTLSExtensionOrder())
} //}
logger := tls_client.NewNoopLogger() logger := tls_client.NewNoopLogger()
if forWard.Debug { if forWard.Debug {
logger = tls_client.NewDebugLogger(tls_client.NewDebugLogger(tls_client.NewLogger())) logger = tls_client.NewDebugLogger(tls_client.NewDebugLogger(tls_client.NewLogger()))
......
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