change InsecureSkipVerify logic!

This commit is contained in:
eson 2018-11-23 00:50:54 +08:00
parent a6217886dc
commit 12cf8d58ba

View File

@ -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: