Comparing version 1.0.4 to 1.1.0
@@ -15,3 +15,3 @@ const debug = require('debug')('wait-port'); | ||
// 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); | ||
@@ -18,0 +18,0 @@ return callback(err); |
{ | ||
"name": "wait-port", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "Utility to wait for a TCP port to open.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/wait-port.js", |
42244