Index: node-v18.6.0/lib/net.js =================================================================== --- node-v18.6.0.orig/lib/net.js +++ node-v18.6.0/lib/net.js @@ -1118,8 +1118,8 @@ function lookupAndConnect(self, options) }; if (!isWindows && - dnsopts.family !== 4 && - dnsopts.family !== 6 && + dnsopts.family !== 'IPv4' && + dnsopts.family !== 'IPv6' && dnsopts.hints === 0) { dnsopts.hints = dns.ADDRCONFIG; }