diff --git a/config/validate_server.go b/config/validate_server.go index 74ae74044..c14ae2e78 100644 --- a/config/validate_server.go +++ b/config/validate_server.go @@ -19,7 +19,7 @@ func (s *ServerConfig) Validate() error { return errors.New("Write timeout needs to be set for server configuration") } - if s.Port < 10 || s.Port > 999999 { + if s.Port < 10 || s.Port > 65535 { return errors.New("Server port outside of bounds") }