diff --git a/lib/wait-port.js b/lib/wait-port.js index 6bee464..5e52690 100644 --- a/lib/wait-port.js +++ b/lib/wait-port.js @@ -12,7 +12,7 @@ function createConnectionWithTimeout({ host, port, ipVersion }, timeout, callbac let timer = null; // Try and open the socket, with the params and callback. - const socket = net.createConnection({ host, port, family: ipVersion }, (err) => { + const socket = net.createConnection({ host, port, family: ipVersion, autoSelectFamily: true }, (err) => { if (!err) clearTimeout(timer); return callback(err); }); diff --git a/package-lock.json b/package-lock.json index 4c80328..6fc9b7a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5056,8 +5056,7 @@ "version": "5.3.2", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} + "dev": true }, "agent-base": { "version": "6.0.2",