Commit da00365
fix(cli): isPortBusy now probes all 4 address families to catch IPv4-only listeners
Previously, isPortBusy (used by --force port detection) only tried a bare
tryListenOnPort which binds IPv6 wildcard (::) by default, missing ports
occupied by IPv4-only listeners on 127.0.0.1 or 0.0.0.0.
Now probes 127.0.0.1, 0.0.0.0, ::1, :: — same multi-host approach as
checkPortInUse in ports-inspect.ts. EADDRNOTAVAIL/EAFNOSUPPORT hosts
are silently skipped (e.g. IPv6 not enabled).
Fixes #94426
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>1 parent 5b7cf46 commit da00365
2 files changed
Lines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
140 | 147 | | |
141 | | - | |
142 | 148 | | |
| 149 | + | |
143 | 150 | | |
144 | 151 | | |
145 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
| |||
0 commit comments