Package HTTPClient/DNSMApper:

- fix boolean bug to initialize TLS Config when no tls config set in config
This commit is contained in:
Nicolas JUHEL
2025-03-17 08:39:39 +01:00
parent 6e49a0bd4a
commit a39ad5f911

View File

@@ -77,7 +77,7 @@ func (o *dmp) TransportWithTLS(cfg TransportConfig, ssl *tls.Config) *http.Trans
prx = http.ProxyURL(cfg.Proxy) prx = http.ProxyURL(cfg.Proxy)
} }
if ssl != nil { if ssl == nil {
ssl = o.getTransportTLS(cfg) ssl = o.getTransportTLS(cfg)
} }