mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-25 06:24:27 +08:00
net.connect and net.createConnection dialed only IP literals and "localhost"; any other host name failed with getaddrinfo ENOTFOUND without a lookup, so names served by /etc/hosts or a container's DNS (such as Docker service names) did not connect. The dial now resolves the name with getaddrinfo using Node's hints, orders the addresses as Node's autoSelectFamily does, and tries them in order. Fixes #1156 Co-authored-by: Quim T. <26749475+espetro@users.noreply.github.com>