mirror of https://github.com/status-im/consul.git
Merge pull request #1526 from hashicorp/f-transport
Builds the insecure SSL transport off the clean default transport.
This commit is contained in:
commit
007d6f4bce
|
@ -172,11 +172,11 @@ func DefaultConfig() *Config {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !doVerify {
|
if !doVerify {
|
||||||
config.HttpClient.Transport = &http.Transport{
|
transport := cleanhttp.DefaultTransport()
|
||||||
TLSClientConfig: &tls.Config{
|
transport.TLSClientConfig = &tls.Config{
|
||||||
InsecureSkipVerify: true,
|
InsecureSkipVerify: true,
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
config.HttpClient.Transport = transport
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue