From 3c796f8328a170e2c2178bbf2e1914c0aa90823b Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 28 Apr 2022 21:00:19 +0200 Subject: [PATCH] test: fix `parallel/test-dgram-udp6-link-local-address` Refs: https://github.com/nodejs/node/pull/41431 PR-URL: https://github.com/nodejs/node/pull/42795 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- 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 }; } }