mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Merge pull request #357 from bloqaudio/fix/ingress-port-bound
cmd_parser: reject port 0 in the ingress command
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user