Skip to content

Commit c89cc23

Browse files
committed
add ability to specify the maximum TLS version
Signed-off-by: Lyas Spiehler <lspiehler@gmail.com>
1 parent 53cf9b9 commit c89cc23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config/http_config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"crypto/x509"
2222
"encoding/json"
2323
"fmt"
24+
"io/ioutil"
2425
"net"
2526
"net/http"
2627
"net/url"
@@ -826,6 +827,8 @@ type TLSConfig struct {
826827
InsecureSkipVerify bool `yaml:"insecure_skip_verify" json:"insecure_skip_verify"`
827828
// Minimum TLS version.
828829
MinVersion TLSVersion `yaml:"min_version,omitempty" json:"min_version,omitempty"`
830+
// Maximum TLS version.
831+
MaxVersion TLSVersion `yaml:"max_version,omitempty" json:"max_version,omitempty"`
829832
}
830833

831834
// SetDirectory joins any relative file paths with dir.

0 commit comments

Comments
 (0)