Commit e922970
fix: isPortBusy preflight misses IPv4-only occupant (same address-family flaw as #94379)
Route isPortBusy through checkPortInUse (from src/infra/ports-inspect.ts),
which probes all four endpoints (127.0.0.1, 0.0.0.0, ::1, ::) instead of
a bare tryListenOnPort that binds the IPv6 wildcard (::) on dual-stack
hosts. An occupant listening only on 127.0.0.1 (IPv4-only) does not
conflict with that bind, so isPortBusy returns false (free) when the
port is actually taken.
This is the same address-family flaw fixed for the CDP preflight in
#94379 / #94415, now fixed for the gateway --force flow.
Closes #94426.
Co-Authored-By: Claude <[email protected]>1 parent c14793d commit e922970
2 files changed
Lines changed: 7 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
143 | 138 | | |
144 | 139 | | |
145 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
637 | | - | |
| 637 | + | |
638 | 638 | | |
639 | 639 | | |
640 | 640 | | |
| |||
0 commit comments