Skip to content

Commit

Permalink
added MaxVersion to NewTLSConfig
Browse files Browse the repository at this point in the history
Signed-off-by: Lyas Spiehler <lspiehler@gmail.com>
  • Loading branch information
lspiehler committed Nov 25, 2022
1 parent d485d17 commit e1fa703
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/http_config.go
Expand Up @@ -780,6 +780,7 @@ func NewTLSConfig(cfg *TLSConfig) (*tls.Config, error) {
tlsConfig := &tls.Config{
InsecureSkipVerify: cfg.InsecureSkipVerify,
MinVersion: uint16(cfg.MinVersion),
MaxVersion: uint16(cfg.MaxVersion),
}

// If a CA cert is provided then let's read it in so we can validate the
Expand Down

0 comments on commit e1fa703

Please sign in to comment.