mirror of
https://github.com/vercel-labs/portless.git
synced 2026-09-14 16:37:59 +08:00
2013e0792f
The proxy hardcoded 127.0.0.1 as the upstream address, so apps that bind localhost on Node 17+ (which resolves verbatim and may yield ::1 only, e.g. Vite's default server.host) got ECONNREFUSED and a 502 on every request. Dial with autoSelectFamily over a fixed loopback address list in both the request and WebSocket upgrade paths, and use the same connection helper in isPortListening so ::1-only apps are not reported dead. Fixes #320.