mirror of https://github.com/k3s-io/k3s
apiserver: allow high ports in secure serving validation
parent
692f9bb7b1
commit
fe310525db
|
@ -152,8 +152,8 @@ func (o *CombinedInsecureServingOptions) Validate() []error {
|
|||
|
||||
errors := []error{}
|
||||
|
||||
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))
|
||||
if o.BindPort < 0 || o.BindPort > 65335 {
|
||||
errors = append(errors, fmt.Errorf("--port %v must be between 0 and 65335, inclusive. 0 for turning off insecure (HTTP) port", o.BindPort))
|
||||
}
|
||||
|
||||
if len(o.BindAddress) > 0 && net.ParseIP(o.BindAddress) == nil {
|
||||
|
|
Loading…
Reference in New Issue