diff options
author | Antoine du Hamel <duhamelantoine1995@gmail.com> | 2022-04-28 22:00:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 22:00:19 +0300 |
commit | 68fb0bf553e2af3e0b61733d29e1e9ba7f73d9b2 (patch) | |
tree | bb0fe8af608606c3aa56aba07b91ccd6b010d5e0 /test | |
parent | d4699c78054f364a9a385f14ab7765cd21abb2e7 (diff) |
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 <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/parallel/test-dgram-udp6-link-local-address.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-dgram-udp6-link-local-address.js b/test/parallel/test-dgram-udp6-link-local-address.js index 5c090acc6b9..c9a0224c84c 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 }; } } |