From 95c4e65e9b13f9cd9e0f75349c2ac0f553a0fda5 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 20 Apr 2022 11:43:39 +0200 Subject: [PATCH] test: fix `parallel/test-dgram-udp6-link-local-address` Refs: https://github.com/nodejs/node/pull/41431 --- test/parallel/test-dgram-udp6-link-local-address.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-dgram-udp6-link-local-address.js b/test/parallel/test-dgram-udp6-link-local-address.js index 5c090acc6b9e11..c9a0224c84c00d 100644 --- a/test/parallel/test-dgram-udp6-link-local-address.js +++ b/test/parallel/test-dgram-udp6-link-local-address.js @@ -12,7 +12,7 @@ const { isWindows } = common; function linklocal() { for (const [ifname, entries] of Object.entries(os.networkInterfaces())) { for (const { address, family, scopeid } of entries) { - if (family === 'IPv6' && address.startsWith('fe80:')) { + if (family === 6 && address.startsWith('fe80:')) { return { address, ifname, scopeid }; } }