This commit is contained in:
COOL 2025-02-20 13:24:53 +08:00
parent 1b3e4acb87
commit af103ec25f

View File

@ -34,7 +34,7 @@ function isPortAvailableSync(port: number): boolean {
*/ */
export function availablePort(startPort: number): number { export function availablePort(startPort: number): number {
let port = startPort; let port = startPort;
while (port <= 65535) { while (port <= 8010) {
if (isPortAvailableSync(port)) { if (isPortAvailableSync(port)) {
if (port !== startPort) { if (port !== startPort) {
console.warn( console.warn(