diff --git a/client.go b/client.go index c29a1c29..be8390e6 100644 --- a/client.go +++ b/client.go @@ -231,6 +231,8 @@ func newClient( ) (*client, error) { if tlsConf == nil { tlsConf = &tls.Config{} + } else { + tlsConf = tlsConf.Clone() } if tlsConf.ServerName == "" { sni := host