docs(browse): findAvailablePort comment matches the 49151 range cap

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-08-16 15:07:00 -07:00
co-authored by Claude Fable 5
parent 8cc379b872
commit 415beedfea
+1 -1
View File
@@ -115,7 +115,7 @@ export function isPortAvailable(port: number, hostname: string = '127.0.0.1'): P
/**
* Find a port: the explicit override when given, otherwise a random port in
* the fixed 10000-60000 scan range with bounded retries. NEVER `port: 0` —
* the fixed 10000-49151 scan range with bounded retries. NEVER `port: 0` —
* see the module header for why the ephemeral range is off-limits.
*/
export async function findAvailablePort(explicitPort?: number | null): Promise<number> {