Skip to content

Commit bee455e

Browse files
authored
feat: add autoSelectFamily for happy eyeballs support (#99)
1 parent 2988169 commit bee455e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/wait-port.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function createConnectionWithTimeout({ host, port, ipVersion }, timeout, callbac
1212
let timer = null;
1313

1414
// Try and open the socket, with the params and callback.
15-
const socket = net.createConnection({ host, port, family: ipVersion }, (err) => {
15+
const socket = net.createConnection({ host, port, family: ipVersion, autoSelectFamily: true }, (err) => {
1616
if (!err) clearTimeout(timer);
1717
return callback(err);
1818
});

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)