This commit is contained in:
huangsimin 2018-11-23 15:47:18 +08:00
commit 72491204d6

View File

@ -229,7 +229,7 @@ func (ses *Session) SetConfig(typeConfig TypeConfig, values interface{}) {
ses.transport.Proxy = nil ses.transport.Proxy = nil
} }
case CInsecure: case CInsecure:
ses.transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: !values.(bool)} ses.transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: values.(bool)}
case CTLS: case CTLS:
ses.transport.TLSClientConfig = values.(*tls.Config) ses.transport.TLSClientConfig = values.(*tls.Config)
case CBasicAuth: case CBasicAuth: