diff --git a/session.go b/session.go index a33c978..ebff00f 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: