From daec619fac67d2a87c8a4bdf59dce9dff248622d Mon Sep 17 00:00:00 2001 From: Kuba Date: Thu, 4 Jan 2024 12:20:34 +0100 Subject: [PATCH] fix(BUX-420): port validation in server validation fixed --- config/validate_server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") }