diff --git a/src/node/entry.ts b/src/node/entry.ts index 30dd93d8f..3b95f9e90 100644 --- a/src/node/entry.ts +++ b/src/node/entry.ts @@ -159,7 +159,7 @@ const main = async (args: DefaultedArgs): Promise => { } } - if (serverAddress && !args.socket && args.open) { + if (!args.socket && args.open) { // The web socket doesn't seem to work if browsing with 0.0.0.0. const openAddress = serverAddress.replace(/:\/\/0.0.0.0/, "://localhost") await open(openAddress).catch((error: Error) => {