mirror of
https://github.com/garrytan/gstack.git
synced 2026-09-09 14:38:59 +02:00
docs(browse): findAvailablePort comment matches the 49151 range cap
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
8cc379b872
commit
415beedfea
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user