Commit fe042eeb authored by wang's avatar wang

111

parent 7acaa64b
......@@ -13,7 +13,6 @@ import (
"github.com/imroc/req/v3"
"github.com/sirupsen/logrus"
utls "github.com/refraction-networking/utls"
"io/ioutil"
"math/big"
"net/http"
......@@ -141,13 +140,11 @@ func RandRandom(a int64) int64 {
}
func NewClient(forWard ForwardItem, ios bool) (Client, error) {
client := req.C().
SetUserAgent("Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36").
SetTLSFingerprintChrome()
client.SetTLSFingerprint(utls.HelloChrome_115_PQ_PSK)
client := req.C().DisableCompression().EnableForceHTTP2()
if forWard.Debug {
client = client.EnableDumpAll()
}
client.SetProxyURL(forWard.Proxy)
return Client{Client: client, Item: forWard}, nil
}
......
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