| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 55aba6a commit 30837b3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -116,7 +116,8 @@ const interfaces = os.networkInterfaces(); | |||
| 116 | 116 | switch (platform) { | |
| 117 | 117 | case 'linux': | |
| 118 | 118 | { | |
| 119 | - const filter = (e) => e.address === '127.0.0.1'; | ||
| 119 | + const filter = | ||
| 120 | + (e) => e.address === '127.0.0.1' && e.netmask === '255.0.0.0'; | ||
| 120 | 121 | const actual = interfaces.lo.filter(filter); | |
| 121 | 122 | const expected = [{ address: '127.0.0.1', netmask: '255.0.0.0', | |
| 122 | 123 | mac: '00:00:00:00:00:00', family: 'IPv4', | |
| Back | FazBrowse Home | New Git URL |
0 commit comments