Skip to content

Commit

Permalink
node 18 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xnuk committed May 22, 2022
1 parent f003417 commit 0cd9dc6
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 !== 'IPv4') return
if (ip == null || (ip.family as unknown as 4 | 6) !== 4) return
console.log(`\t http://${ip.address}:${port}`)
})
}
Expand Down

0 comments on commit 0cd9dc6

Please sign in to comment.