Skip to content

Commit 3c796f8

Browse files
aduh95targos
authored andcommitted
test: fix parallel/test-dgram-udp6-link-local-address
Refs: #41431 PR-URL: #42795 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent e808366 commit 3c796f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-dgram-udp6-link-local-address.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { isWindows } = common;
1212
function linklocal() {
1313
for (const [ifname, entries] of Object.entries(os.networkInterfaces())) {
1414
for (const { address, family, scopeid } of entries) {
15-
if (family === 'IPv6' && address.startsWith('fe80:')) {
15+
if (family === 6 && address.startsWith('fe80:')) {
1616
return { address, ifname, scopeid };
1717
}
1818
}

0 commit comments

Comments
 (0)