Skip to content

Commit

Permalink
Fix allowlist port range validation
Browse files Browse the repository at this point in the history
  • Loading branch information
bartoszWojciechO committed Feb 10, 2025
1 parent 3f3d8d1 commit 11afeb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/rpc_set_allowlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func arePortsValid(portRangeStart int64, portRangeEnd int64, currentPorts config
}

if portRangeEnd != 0 &&
((portRangeStart < internal.AllowlistMinPort || portRangeStart > internal.AllowlistMaxPort) ||
((portRangeEnd < internal.AllowlistMinPort || portRangeEnd > internal.AllowlistMaxPort) ||
portRangeEnd < portRangeStart) {
return false, internal.CodeAllowlistPortOutOfRange
}
Expand Down

0 comments on commit 11afeb1

Please sign in to comment.