Merge PR #7634: fix(stats): restrict dashboard to loopback (@roboomp)

This commit is contained in:
can1357
2026-08-05 01:11:58 +02:00
7 changed files with 125 additions and 52 deletions
+3 -3
View File
@@ -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");