Browse Source

Use Default min version if not specified.

Mariano Cano 5 years ago
parent
commit
da2802504b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      authority/config/config.go

+ 1 - 1
authority/config/config.go

@@ -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")