fix go vet errors
Signed-off-by: Jess Frazelle <jessfraz@google.com> fix composites Signed-off-by: Jess Frazelle <me@jessfraz.com>
This commit is contained in:

committed by
Jess Frazelle

parent
eef8bfec23
commit
7e9d82129e
@@ -69,9 +69,9 @@ func DialURL(url *url.URL, transport http.RoundTripper) (net.Conn, error) {
|
||||
inferredHost = host
|
||||
}
|
||||
// Make a copy to avoid polluting the provided config
|
||||
tlsConfigCopy := *tlsConfig
|
||||
tlsConfigCopy, _ := utilnet.TLSClientConfig(transport)
|
||||
tlsConfigCopy.ServerName = inferredHost
|
||||
tlsConfig = &tlsConfigCopy
|
||||
tlsConfig = tlsConfigCopy
|
||||
}
|
||||
tlsConn = tls.Client(netConn, tlsConfig)
|
||||
if err := tlsConn.Handshake(); err != nil {
|
||||
|
Reference in New Issue
Block a user