MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / findAvailablePort

Method findAvailablePort

warp/warp.ts:244–250  ·  view source on GitHub ↗
(start = DEFAULT_PORT, end = 50000)

Source from the content-addressed store, hash-verified

242 if (!result.success || !result.output) return port;
243 }
244 return DEFAULT_PORT;
245 }
246
247 private static async installBinary(): Promise<void> {
248 const archResult = await SystemExecutor.run("uname -m");
249 const arch = archResult.output;
250
251 let archName = "amd64";
252 if (arch === "aarch64" || arch === "arm64") archName = "arm64";
253 else if (arch === "x86_64") archName = "amd64";

Callers 1

setupAndStartMethod · 0.95

Calls 1

runMethod · 0.80

Tested by

no test coverage detected