mirror of
https://github.com/garrytan/gstack.git
synced 2026-05-19 19:02:29 +08:00
fix: use 127.0.0.1 instead of localhost for serve URL
Avoids DNS resolution issues on some systems where localhost may resolve to IPv6 ::1 while Bun listens on IPv4 only. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -87,7 +87,7 @@ export async function serve(options: ServeOptions): Promise<void> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const actualPort = server.port;
|
const actualPort = server.port;
|
||||||
const boardUrl = `http://localhost:${actualPort}`;
|
const boardUrl = `http://127.0.0.1:${actualPort}`;
|
||||||
|
|
||||||
console.error(`SERVE_STARTED: port=${actualPort} html=${html}`);
|
console.error(`SERVE_STARTED: port=${actualPort} html=${html}`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user