Skip to content

Commit

Permalink
test: fix parallel/test-dgram-udp6-link-local-address
Browse files Browse the repository at this point in the history
Refs: #41431

PR-URL: #42795
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
aduh95 committed Apr 28, 2022
1 parent d4699c7 commit 68fb0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-dgram-udp6-link-local-address.js
Expand Up @@ -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 };
}
}
Expand Down

0 comments on commit 68fb0bf

Please sign in to comment.