replace CloneTLSConfig() with (*tls.Config).Clone()
Kubernetes-commit: 6c6dbec1e2364b994bdae42828e094b9b540f9b3
This commit is contained in:
parent
4b7a66ff7e
commit
aab2f083cf
|
|
@ -69,7 +69,7 @@ func DialURL(url *url.URL, transport http.RoundTripper) (net.Conn, error) {
|
||||||
inferredHost = host
|
inferredHost = host
|
||||||
}
|
}
|
||||||
// Make a copy to avoid polluting the provided config
|
// Make a copy to avoid polluting the provided config
|
||||||
tlsConfigCopy := utilnet.CloneTLSConfig(tlsConfig)
|
tlsConfigCopy := tlsConfig.Clone()
|
||||||
tlsConfigCopy.ServerName = inferredHost
|
tlsConfigCopy.ServerName = inferredHost
|
||||||
tlsConfig = tlsConfigCopy
|
tlsConfig = tlsConfigCopy
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue