From 0cd9dc627c2c4b2cf9de94289afc84f86141e592 Mon Sep 17 00:00:00 2001 From: Xnuk Shuman Date: Sun, 22 May 2022 19:54:35 +0900 Subject: [PATCH] node 18 changes --- scripts/build.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.ts b/scripts/build.ts index d272321..7c2d35f 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -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}`) }) }