Fix: tls verify bug

This commit is contained in:
kayos@tcp.direct 2023-01-31 01:40:48 -08:00
parent bd3ae2270c
commit 45603b7ead
Signed by: kayos
GPG Key ID: 4B841471B4BEE979

View File

@ -10,7 +10,7 @@ func (p5 *ProxyEngine) newHTTPClient() any {
return &http.Client{
Transport: &http.Transport{
DialContext: p5.DialContext,
TLSClientConfig: &tls.Config{InsecureSkipVerify: p5.GetHTTPTLSVerificationStatus()},
TLSClientConfig: &tls.Config{InsecureSkipVerify: p5.GetHTTPTLSVerificationStatus() == false}, //nolint:gosec
// TLSHandshakeTimeout: p5.GetServerTimeout(),
DisableKeepAlives: true,
DisableCompression: false,