replace CloneTLSConfig() with (*tls.Config).Clone()

Kubernetes-commit: 6c6dbec1e2364b994bdae42828e094b9b540f9b3
This commit is contained in:
Mike Danese 2017-04-26 10:45:58 -07:00 committed by Kubernetes Publisher
parent 4b7a66ff7e
commit aab2f083cf
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func DialURL(url *url.URL, transport http.RoundTripper) (net.Conn, error) {
inferredHost = host
}
// Make a copy to avoid polluting the provided config
tlsConfigCopy := utilnet.CloneTLSConfig(tlsConfig)
tlsConfigCopy := tlsConfig.Clone()
tlsConfigCopy.ServerName = inferredHost
tlsConfig = tlsConfigCopy
}