Ver código fonte

Use Default min version if not specified.

Mariano Cano 5 anos atrás
pai
commit
da2802504b
1 arquivos alterados com 1 adições e 1 exclusões
  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
 		}
 		if c.TLS.MinVersion == 0 {
-			c.TLS.MinVersion = c.TLS.MaxVersion
+			c.TLS.MinVersion = DefaultTLSOptions.MinVersion
 		}
 		if c.TLS.MinVersion > c.TLS.MaxVersion {
 			return errors.New("tls minVersion cannot exceed tls maxVersion")