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
2026-08-18 09:05:06 +02:00
committed by GitHub
+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;
}