mirror of
https://github.com/nabbar/golib.git
synced 2025-09-26 20:01:15 +08:00
Package HTTPClient/DNSMApper:
- fix boolean bug to initialize TLS Config when no tls config set in config
This commit is contained in:
@@ -77,7 +77,7 @@ func (o *dmp) TransportWithTLS(cfg TransportConfig, ssl *tls.Config) *http.Trans
|
||||
prx = http.ProxyURL(cfg.Proxy)
|
||||
}
|
||||
|
||||
if ssl != nil {
|
||||
if ssl == nil {
|
||||
ssl = o.getTransportTLS(cfg)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user