Merge pull request #357 from bloqaudio/fix/ingress-port-bound

cmd_parser: reject port 0 in the ingress command
This commit is contained in:
René van Dorst authored and GitHub committed 2026-08-18 09:05:06 +02:00
commit cbbc6160f4
1 file changed
+1 -1
+1 -1
View File
@@ -529,7 +529,7 @@ void parse_ingress(void)
if (!isnumber(p)) {
continue;
}
if (p - '1' > 9) {
if (p < '1') {
print_string("Invalid physical port number: "); write_char(p); write_char('\n');
continue;
}