From ae9cfd8e77c37d62f1181033b53d68282f798ae0 Mon Sep 17 00:00:00 2001 From: bourgeoa Date: Fri, 15 Dec 2023 12:19:36 +0100 Subject: [PATCH] node 18 defaults to ipv6 --- test/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.js b/test/utils.js index 214a261ff..33db7783f 100644 --- a/test/utils.js +++ b/test/utils.js @@ -55,7 +55,7 @@ exports.checkDnsSettings = function () { return Promise.all(TEST_HOSTS.map(hostname => { return new Promise((resolve, reject) => { dns.lookup(hostname, (error, ip) => { - if (error || ip !== '127.0.0.1') { + if (error || (ip !== '127.0.0.1' && ip !== '::1')) { reject(error) } else { resolve(true)