fix port
This commit is contained in:
+1
-1
@@ -77,7 +77,7 @@ async function getFreePort(used) {
|
|||||||
const p = Math.floor(Math.random() * (60000 - 10000)) + 10000;
|
const p = Math.floor(Math.random() * (60000 - 10000)) + 10000;
|
||||||
if (used.has(p)) continue;
|
if (used.has(p)) continue;
|
||||||
if (await isPortFree(p)) {
|
if (await isPortFree(p)) {
|
||||||
used.add(inbound.port);
|
used.add(p);
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user