Commit 789d59f
fix(ports): specify IPv4 loopback host in ensurePortAvailable
ensurePortAvailable uses net.listen({ port }) without specifying host.
On dual-stack machines, this binds to the IPv6 wildcard '::', so an
IPv4-only occupant of 127.0.0.1 is not detected and the pre-flight
erroneously reports the port as free. Add host: '127.0.0.1'.
Closes: #94379
Co-Authored-By: Claude <[email protected]>1 parent 2f8f936 commit 789d59f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
0 commit comments