diff --git a/lib/core/connection/connect.js b/lib/core/connection/connect.js index 1d09ceb7c0..46c0b9edd9 100644 --- a/lib/core/connection/connect.js +++ b/lib/core/connection/connect.js @@ -35,7 +35,7 @@ function connect(options, callback) { return makeConnection(6, options, (err, ipv6Socket) => { if (err) { - makeConnection(4, options, (err, ipv4Socket) => { + makeConnection(0, options, (err, ipv4Socket) => { if (err) { callback(err, ipv4Socket); // in the error case, `ipv4Socket` is the originating error event name return;