Commit 6f62055e authored by wangmingming's avatar wangmingming

11

parent 419b2efd
...@@ -126,6 +126,9 @@ func RandRandom(a int64) int64 { ...@@ -126,6 +126,9 @@ func RandRandom(a int64) int64 {
func NewClient(forWard ForwardItem, ios bool) (Client, error) { func NewClient(forWard ForwardItem, ios bool) (Client, error) {
jar := tls_client.NewCookieJar() jar := tls_client.NewCookieJar()
tlsVersion := chromes[RandRandom(int64(len(chromes)))] tlsVersion := chromes[RandRandom(int64(len(chromes)))]
if ios {
tlsVersion = tls_client.Safari_IOS_16_0
}
options := []tls_client.HttpClientOption{ options := []tls_client.HttpClientOption{
tls_client.WithTimeoutSeconds(forWard.Timeout), tls_client.WithTimeoutSeconds(forWard.Timeout),
tls_client.WithClientProfile(tlsVersion), tls_client.WithClientProfile(tlsVersion),
......
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