forked from TrueCloudLab/certificates
Use Default min version if not specified.
This commit is contained in:
parent
456ffd8806
commit
da2802504b
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ func (c *Config) Validate() error {
|
||||||
c.TLS.MaxVersion = DefaultTLSOptions.MaxVersion
|
c.TLS.MaxVersion = DefaultTLSOptions.MaxVersion
|
||||||
}
|
}
|
||||||
if c.TLS.MinVersion == 0 {
|
if c.TLS.MinVersion == 0 {
|
||||||
c.TLS.MinVersion = c.TLS.MaxVersion
|
c.TLS.MinVersion = DefaultTLSOptions.MinVersion
|
||||||
}
|
}
|
||||||
if c.TLS.MinVersion > c.TLS.MaxVersion {
|
if c.TLS.MinVersion > c.TLS.MaxVersion {
|
||||||
return errors.New("tls minVersion cannot exceed tls maxVersion")
|
return errors.New("tls minVersion cannot exceed tls maxVersion")
|
||||||
|
|
Loading…
Reference in a new issue