Skip to content

Commit c609b97

Browse files
author
John McCambridge
committed
Add warning, remove change of host
1 parent 22dad18 commit c609b97

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

packages/server/src/cli.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,10 @@ const bold = (text: string | number): string | number => {
236236
});
237237

238238
if (options.noAuth || options.allowHttp) {
239-
logger.info("Starting webserver...", field("host", "127.0.0.1"), field("port", options.port));
240-
app.server.listen(options.port, "127.0.0.1");
241-
} else {
242-
logger.info("Starting webserver...", field("host", options.host), field("port", options.port));
243-
app.server.listen(options.port, options.host);
239+
logger.warn("0.0.0.0 is accessible to any device on your network");
244240
}
241+
logger.info("Starting webserver...", field("host", options.host), field("port", options.port));
242+
app.server.listen(options.port, options.host);
245243
let clientId = 1;
246244
app.wss.on("connection", (ws, req) => {
247245
const id = clientId++;

0 commit comments

Comments
 (0)