Skip to content

Commit

Permalink
add ability to specify the maximum TLS version
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 22, 2022
1 parent 53cf9b9 commit c89cc23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/http_config.go
Expand Up @@ -21,6 +21,7 @@ import (
"crypto/x509"
"encoding/json"
"fmt"
"io/ioutil"
"net"
"net/http"
"net/url"
Expand Down Expand Up @@ -826,6 +827,8 @@ type TLSConfig struct {
InsecureSkipVerify bool `yaml:"insecure_skip_verify" json:"insecure_skip_verify"`
// Minimum TLS version.
MinVersion TLSVersion `yaml:"min_version,omitempty" json:"min_version,omitempty"`
// Maximum TLS version.
MaxVersion TLSVersion `yaml:"max_version,omitempty" json:"max_version,omitempty"`
}

// SetDirectory joins any relative file paths with dir.
Expand Down

0 comments on commit c89cc23

Please sign in to comment.