diff --git a/test/parallel/test-net-dns-lookup.js b/test/parallel/test-net-dns-lookup.js index 8ef0382ae1a816..adf9fbf0489690 100644 --- a/test/parallel/test-net-dns-lookup.js +++ b/test/parallel/test-net-dns-lookup.js @@ -33,7 +33,7 @@ server.listen(0, common.mustCall(function() { net.connect(this.address().port, 'localhost') .on('lookup', common.mustCallAtLeast(function(err, ip, type, host) { assert.strictEqual(err, null); - assert.match(ip, /^(127\.0\.0\.1|::1)$/); + assert.match(ip, /^(127\.0\.0\.1|(fe80)?::1)$/); assert.match(type.toString(), /^(4|6)$/); assert.strictEqual(host, 'localhost'); }, 1));