mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/proxy: there is no need in cloning tlsCfg, which has been created two lines above
This commit is contained in:
parent
895d5d1355
commit
ca4d5ce037
1 changed files with 0 additions and 1 deletions
|
@ -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 a new issue