mirror of
https://github.com/status-im/consul.git
synced 2025-02-22 10:28:31 +00:00
Builds the insecure SSL transport off the clean default transport.
This commit is contained in:
parent
01e3ad4a5a
commit
ebff3fe0d0
@ -172,11 +172,11 @@ func DefaultConfig() *Config {
|
||||
}
|
||||
|
||||
if !doVerify {
|
||||
config.HttpClient.Transport = &http.Transport{
|
||||
TLSClientConfig: &tls.Config{
|
||||
InsecureSkipVerify: true,
|
||||
},
|
||||
transport := cleanhttp.DefaultTransport()
|
||||
transport.TLSClientConfig = &tls.Config{
|
||||
InsecureSkipVerify: true,
|
||||
}
|
||||
config.HttpClient.Transport = transport
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user