Fix nil TLSClientConfig (#901)

pull/904/head^2
Kevin Maris 5 years ago committed by GitHub
parent 7cf74596bf
commit 8a8b2fb8e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -170,6 +170,10 @@ func (c *Config) ConfigureTLS() error {
if c.HttpClient == nil {
c.HttpClient = cleanhttp.DefaultPooledClient()
}
if c.HttpClient.Transport.(*http.Transport).TLSClientConfig == nil {
c.HttpClient.Transport.(*http.Transport).TLSClientConfig = &tls.Config{}
}
clientTLSConfig := c.HttpClient.Transport.(*http.Transport).TLSClientConfig
var clientCert tls.Certificate

Loading…
Cancel
Save