This commit is contained in:
兔子 2025-06-06 15:43:38 +08:00
parent 0d847462b3
commit 44b807d3d1

View File

@ -1586,6 +1586,15 @@ func applyOptions(r *Request) error {
r.lookUpIPfn = resolver.LookupIPAddr
}
}
if r.skipTLSVerify {
if r.transport.TLSClientConfig == nil {
r.transport.TLSClientConfig = &tls.Config{}
}
r.transport.TLSClientConfig.InsecureSkipVerify = true
}
if r.tlsConfig != nil {
r.transport.TLSClientConfig = r.tlsConfig
}
r.rawClient.Transport = r.transport
if r.disableRedirect {
r.rawClient.CheckRedirect = func(req *http.Request, via []*http.Request) error {