mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-05 22:32:20 +01:00
app/vmagent: properly set client-side TLS certificates for -remoteWrite.url
. Previously they were mistakenly set as server-side
This commit is contained in:
parent
9f39e618ed
commit
12dbb9e22c
@ -169,7 +169,9 @@ func getTLSConfig() (*tls.Config, error) {
|
|||||||
ClientSessionCache: tls.NewLRUClientSessionCache(0),
|
ClientSessionCache: tls.NewLRUClientSessionCache(0),
|
||||||
}
|
}
|
||||||
if tlsCertificate != nil {
|
if tlsCertificate != nil {
|
||||||
tlsCfg.Certificates = []tls.Certificate{*tlsCertificate}
|
tlsCfg.GetClientCertificate = func(*tls.CertificateRequestInfo) (*tls.Certificate, error) {
|
||||||
|
return tlsCertificate, nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
tlsCfg.InsecureSkipVerify = *tlsInsecureSkipVerify
|
tlsCfg.InsecureSkipVerify = *tlsInsecureSkipVerify
|
||||||
return tlsCfg, nil
|
return tlsCfg, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user