Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 5a48285

Browse files
authored
feat: display all listening ports (#332)
1 parent 810ceda commit 5a48285

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/http-server/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ export async function startServer<Plugins extends HTTPPluginSignatures>(
459459
server.listen(port, host, () => {
460460
const log = mf.log;
461461
const protocol = httpsEnabled ? "https" : "http";
462-
const accessibleHosts = host ? [host] : getAccessibleHosts(true);
462+
const accessibleHosts =
463+
host && host !== "0.0.0.0" ? [host] : getAccessibleHosts(true);
463464
log.info(`Listening on ${host ?? ""}:${port}`);
464465
for (const accessibleHost of accessibleHosts) {
465466
log.info(`- ${protocol}://${accessibleHost}:${port}`);

0 commit comments

Comments
 (0)