return this;
};
+function socketToDnsFamily(family) {
+ switch (family) {
+ case 'IPv4':
+ return 4;
+ case 'IPv6':
+ return 6;
+ }
+
+ return family;
+}
function lookupAndConnect(self, options) {
const { localAddress, localPort } = options;
if (dns === undefined) dns = require('dns');
const dnsopts = {
- family: options.family,
+ family: socketToDnsFamily(options.family),
hints: options.hints || 0
};
test-debug-args: PASS,FLAKY
[$system==solaris] # Also applies to SmartOS
-# https://github.com/nodejs/node/pull/43054
-test-net-socket-connect-without-cb: SKIP
-test-net-socket-ready-without-cb: SKIP
-test-tcp-wrap-listen: SKIP
# https://github.com/nodejs/node/issues/43446
test-net-connect-reset-until-connected: PASS, FLAKY
# https://github.com/nodejs/node/issues/43457
# https://github.com/nodejs/node/issues/43446
test-net-connect-reset-until-connected: PASS, FLAKY
-[$system==aix]
-# https://github.com/nodejs/node/pull/43054
-test-net-socket-connect-without-cb: SKIP
-test-net-socket-ready-without-cb: SKIP
-test-tcp-wrap-listen: SKIP
-
[$system==ibmi]
# https://github.com/nodejs/node/pull/30819
test-child-process-fork-net-server: SKIP