From 12cf8d58ba08b68bb6336ac4d2cddeb7a783868d Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Fri, 23 Nov 2018 00:50:54 +0800 Subject: [PATCH] change InsecureSkipVerify logic! --- session.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/session.go b/session.go index 93126d6..23bcea7 100644 --- a/session.go +++ b/session.go @@ -229,7 +229,7 @@ func (ses *Session) SetConfig(typeConfig TypeConfig, values interface{}) { ses.transport.Proxy = nil } case CInsecure: - ses.transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: !values.(bool)} + ses.transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: values.(bool)} case CTLS: ses.transport.TLSClientConfig = values.(*tls.Config) case CBasicAuth: