Skip to content

Commit e5b0bfd

Browse files
author
John McCambridge
committed
Only show message if the host is 0.0.0.0
1 parent c609b97 commit e5b0bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/server/src/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ const bold = (text: string | number): string | number => {
235235
} : undefined,
236236
});
237237

238-
if (options.noAuth || options.allowHttp) {
238+
if (options.noAuth && options.host === "0.0.0.0"|| options.allowHttp && options.host === "0.0.0.0") {
239239
logger.warn("0.0.0.0 is accessible to any device on your network");
240240
}
241241
logger.info("Starting webserver...", field("host", options.host), field("port", options.port));

0 commit comments

Comments
 (0)