prom: Allow insecure TLS connections if --insecure is provided (#4716)

This commit is contained in:
Anis Eleuch
2023-10-13 18:57:03 -07:00
committed by GitHub
parent 54d12e95bd
commit d158b9a478
+2 -1
View File
@@ -435,7 +435,8 @@ func httpClient(reqTimeout time.Duration) *http.Client {
}).DialContext,
Proxy: ieproxy.GetProxyFunc(),
TLSClientConfig: &tls.Config{
RootCAs: globalRootCAs,
RootCAs: globalRootCAs,
InsecureSkipVerify: globalInsecure,
// Can't use SSLv3 because of POODLE and BEAST
// Can't use TLSv1.0 because of POODLE and BEAST using CBC cipher
// Can't use TLSv1.1 because of RC4 cipher usage