diff --git a/outputs/client.go b/outputs/client.go index 99013e4c5..9a98e07bd 100644 --- a/outputs/client.go +++ b/outputs/client.go @@ -194,11 +194,11 @@ func (c *Client) sendRequest(method string, payload interface{}) error { customTransport := http.DefaultTransport.(*http.Transport).Clone() if customTransport.TLSClientConfig == nil { - customTransport.TLSClientConfig = &tls.Config{} + customTransport.TLSClientConfig = &tls.Config{ + MinVersion: tls.VersionTLS12, + } } - customTransport.TLSClientConfig.MinVersion = tls.VersionTLS12 - if customTransport.TLSClientConfig.RootCAs == nil { pool, err := x509.SystemCertPool() if err != nil {