Merge PR #7634: fix(stats): restrict dashboard to loopback (@roboomp)
This commit is contained in:
@@ -136,11 +136,11 @@ export async function runStatsCommand(cmd: StatsCommandArgs): Promise<void> {
|
||||
}
|
||||
|
||||
// Start the dashboard server
|
||||
const { port } = await startServer(cmd.port);
|
||||
console.log(chalk.green(`Dashboard available at: http://localhost:${port}`));
|
||||
const { hostname, port } = await startServer(cmd.port);
|
||||
const url = `http://${hostname}:${port}`;
|
||||
console.log(chalk.green(`Dashboard available at: ${url}`));
|
||||
|
||||
// Open browser
|
||||
const url = `http://localhost:${port}`;
|
||||
openPath(url);
|
||||
|
||||
console.log("Press Ctrl+C to stop\n");
|
||||
|
||||
Reference in New Issue
Block a user