This repository was archived by the owner on Mar 13, 2025. It is now read-only.
Commit dab03dc
committed
Fix accessible hosts list in Node.js 18
The `family` property returned by `os.networkInterfaces()` is a
`number` as of Node.js 18.0.0:
https://nodejs.org/api/os.html#osnetworkinterfaces
This meant no IPv4 addresses were being found, and subsequently none
were logged to the console.1 parent f4a70d5 commit dab03dc
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
0 commit comments