diff --git a/config/config.go b/config/config.go index c1693d9795a..0caa4b2ffbf 100644 --- a/config/config.go +++ b/config/config.go @@ -151,11 +151,11 @@ type StorageOptionsConf struct { // Maximum TLS version that is supported. // Options: ["1.0", "1.1", "1.2", "1.3"]. // Defaults to "1.3". - MaxVersion string `json:"max_version"` + TLSMaxVersion string `json:"tls_max_version"` // Minimum TLS version that is supported. // Options: ["1.0", "1.1", "1.2", "1.3"]. // Defaults to "1.2". - MinVersion string `json:"min_version"` + TLSMinVersion string `json:"tls_min_version"` } type NormalisedURLConfig struct { diff --git a/storage/connection_handler.go b/storage/connection_handler.go index 5bffde0b937..de22cd7d05b 100644 --- a/storage/connection_handler.go +++ b/storage/connection_handler.go @@ -273,8 +273,8 @@ func NewConnector(connType string, conf config.Config) (model.Connector, error) CAFile: cfg.CAFile, CertFile: cfg.CertFile, KeyFile: cfg.KeyFile, - MinVersion: cfg.MinVersion, - MaxVersion: cfg.MaxVersion, + MinVersion: cfg.TLSMinVersion, + MaxVersion: cfg.TLSMaxVersion, } opts = append(opts, model.WithTLS(&tls)) }