| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,7 +12,7 @@ const { isWindows } = common; | |||
| 12 | 12 | function linklocal() { | |
| 13 | 13 | for (const [ifname, entries] of Object.entries(os.networkInterfaces())) { | |
| 14 | 14 | for (const { address, family, scopeid } of entries) { | |
| 15 | - if (family === 'IPv6' && address.startsWith('fe80:')) { | ||
| 15 | + if (family === 6 && address.startsWith('fe80:')) { | ||
| 16 | 16 | return { address, ifname, scopeid }; | |
| 17 | 17 | } | |
| 18 | 18 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments