Commit 5e7d8ff
committed
fix(infra): pin ensurePortAvailable to 127.0.0.1 in startSshPortForward
Every other probe in ssh-tunnel.ts is pinned to IPv4 loopback
(pickEphemeralPort, canConnectLocal, the -L forward itself),
but ensurePortAvailable was called host-less. On a dual-stack host
the host-less probe binds the IPv6 wildcard :: and misses an
IPv4-only occupant, reporting a busy port as free.
Pass "127.0.0.1" to match the interface this caller actually owns,
consistent with the fix in #94394.
Fixes #945961 parent 54a2af3 commit 5e7d8ff
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
0 commit comments