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 authored and targos committed May 2, 2022
1 parent e808366 commit 3c796f8
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
Original file line number Diff line number Diff line change
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 3c796f8

Please sign in to comment.