diff --git a/lib/proxy/proxy.go b/lib/proxy/proxy.go index 8222b035f5..097fed2227 100644 --- a/lib/proxy/proxy.go +++ b/lib/proxy/proxy.go @@ -97,7 +97,6 @@ func (u *URL) NewDialFunc(ac *promauth.Config) (fasthttp.DialFunc, error) { if isTLS { tlsCfg = ac.NewTLSConfig() if !tlsCfg.InsecureSkipVerify && tlsCfg.ServerName == "" { - tlsCfg = tlsCfg.Clone() tlsCfg.ServerName = tlsServerName(proxyAddr) } }