Skip to content

Commit

Permalink
node 18 defaults to ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
bourgeoa committed Dec 15, 2023
1 parent 44bfd13 commit ae9cfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ae9cfd8

Please sign in to comment.