This commit is contained in:
gospider
2025-07-29 16:04:47 +08:00
parent 4a7b21da35
commit a08970461a
7 changed files with 90 additions and 63 deletions

View File

@@ -6,7 +6,6 @@ import (
"io"
"os"
"strings"
"time"
"net/url"
@@ -239,10 +238,6 @@ func (obj *Client) request(ctx *Response) (err error) {
return
}
}
//init tls timeout
if ctx.option.TlsHandshakeTimeout == 0 {
ctx.option.TlsHandshakeTimeout = time.Second * 15
}
//init proxy
if ctx.option.Proxy != nil {
ctx.proxys, err = parseProxy(ctx.option.Proxy)