mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-12 12:46:23 +01:00
lib/proxy: there is no need in cloning tlsCfg, which has been created two lines above
This commit is contained in:
parent
72a8fa484b
commit
54f902467d
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user