Skip to content

Commit

Permalink
Update outputs/client.go
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Labarussias <issif+github@gadz.org>
Signed-off-by: Jorge Carpio <carpioldc@gmail.com>
  • Loading branch information
ibice and Issif authored Aug 11, 2023
1 parent f72855c commit 3ce5f52
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions outputs/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ func (c *Client) sendRequest(method string, payload interface{}) error {
customTransport := http.DefaultTransport.(*http.Transport).Clone()

if customTransport.TLSClientConfig == nil {
customTransport.TLSClientConfig = &tls.Config{
MinVersion: tls.VersionTLS12,
}
customTransport.TLSClientConfig = &tls.Config{}

Check failure on line 197 in outputs/client.go

View workflow job for this annotation

GitHub Actions / lint

G402: TLS MinVersion too low. (gosec)
}

customTransport.TLSClientConfig.MinVersion = tls.VersionTLS12
Expand Down

0 comments on commit 3ce5f52

Please sign in to comment.