添加ConfigProxy为nil的情况
This commit is contained in:
parent
1c6f19a23c
commit
4f88f69899
|
@ -144,6 +144,8 @@ func (ses *Session) SetConfig(typeConfig TypeConfig, values interface{}) {
|
|||
ses.transport.Proxy = http.ProxyURL(purl)
|
||||
case *url.URL:
|
||||
ses.transport.Proxy = http.ProxyURL(v)
|
||||
case nil:
|
||||
ses.transport.Proxy = nil
|
||||
}
|
||||
case ConfigInsecure:
|
||||
ses.transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: !values.(bool)}
|
||||
|
|
Loading…
Reference in New Issue
Block a user