Skip to content

Commit

Permalink
node v18.2 reverts again for os.networkInterfaces
Browse files Browse the repository at this point in the history
Note: nodejs/node#43014

This reverts commit 0cd9dc6.
  • Loading branch information
xnuk committed Jul 5, 2022
1 parent 8122189 commit 3a8bdf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export const main = async (opts: Opts, port?: string | number | undefined) => {
Object.values(networkInterfaces())
.flat()
.forEach(ip => {
if (ip == null || (ip.family as unknown as 4 | 6) !== 4) return
if (ip == null || ip.family !== 'IPv4') return
console.log(`\t http://${ip.address}:${port}`)
})
}
Expand Down

0 comments on commit 3a8bdf1

Please sign in to comment.