fix(qa): reject invalid qa lab ports

This commit is contained in:
Vincent Koc
2026-06-18 19:38:58 +02:00
parent ae655345c4
commit 46d359237e
2 changed files with 21 additions and 1 deletions
+3
View File
@@ -73,6 +73,9 @@ async function runQaLabUp(argv: readonly string[], deps: QaLabUpDeps = {}): Prom
if (parsed === undefined) {
throw new Error(`${flag} must be a positive integer.`);
}
if (parsed > 65535) {
throw new Error(`${flag} must be a TCP port from 1 to 65535.`);
}
return parsed;
};