Skip to content

Commit

Permalink
Add the ability to specify the maximum acceptable TLS version (promet…
Browse files Browse the repository at this point in the history
…heus#414)

Signed-off-by: Lyas Spiehler <lspiehler@gmail.com>
  • Loading branch information
lspiehler authored and radek-ryckowski committed May 30, 2023
1 parent 03a7f47 commit 5e13eeb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion config/http_config.go
Expand Up @@ -806,7 +806,6 @@ func NewTLSConfig(cfg *TLSConfig) (*tls.Config, error) {
MinVersion: uint16(tls.VersionTLS10),
MaxVersion: uint16(cfg.MaxVersion),
}

// If a CA cert is provided then let's read it in so we can validate the
// scrape target's certificate properly.
if len(cfg.CAFile) > 0 {
Expand Down

0 comments on commit 5e13eeb

Please sign in to comment.