Skip to content

Commit ae9cfd8

Browse files
committed
node 18 defaults to ipv6
1 parent 44bfd13 commit ae9cfd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ exports.checkDnsSettings = function () {
5555
return Promise.all(TEST_HOSTS.map(hostname => {
5656
return new Promise((resolve, reject) => {
5757
dns.lookup(hostname, (error, ip) => {
58-
if (error || ip !== '127.0.0.1') {
58+
if (error || (ip !== '127.0.0.1' && ip !== '::1')) {
5959
reject(error)
6060
} else {
6161
resolve(true)

0 commit comments

Comments
 (0)