Skip to content

Commit

Permalink
feat: add autoSelectFamily for happy eyeballs support (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
acmacalister authored Sep 20, 2023
1 parent 2988169 commit bee455e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/wait-port.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
3 changes: 1 addition & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bee455e

Please sign in to comment.