Skip to content

Commit

Permalink
fix(BUX-420): port validation in server validation fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-4chain committed Jan 4, 2024
1 parent a4d37a0 commit 812a35e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/validate_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit 812a35e

Please sign in to comment.