Commit e8f7739e authored by David Eads's avatar David Eads

fix scheduler port boundary to match detection

parent 3994829c
...@@ -152,7 +152,7 @@ func (o *CombinedInsecureServingOptions) Validate() []error { ...@@ -152,7 +152,7 @@ func (o *CombinedInsecureServingOptions) Validate() []error {
errors := []error{} errors := []error{}
if o.BindPort <= 0 || o.BindPort > 32767 { if o.BindPort < 0 || o.BindPort > 32767 {
errors = append(errors, fmt.Errorf("--port %v must be between 0 and 32767, inclusive. 0 for turning off insecure (HTTP) port", o.BindPort)) errors = append(errors, fmt.Errorf("--port %v must be between 0 and 32767, inclusive. 0 for turning off insecure (HTTP) port", o.BindPort))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment