We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6fdb7d commit db41f10Copy full SHA for db41f10
1 file changed
src/cli.ts
@@ -193,9 +193,11 @@ const main = async (): Promise<void> => {
193
console.log(" - Not serving HTTPS");
194
}
195
196
- if (args["open"]) {
197
- await open(serverAddress).catch(console.error);
198
- console.log(` - Opened ${serverAddress}`);
+ if (!args.socket && args.open) {
+ // The web socket doesn't seem to work if using 0.0.0.0.
+ const openAddress = `http://localhost:${port}`;
199
+ await open(openAddress).catch(console.error);
200
+ console.log(` - Opened ${openAddress}`);
201
202
};
203
0 commit comments