From 5a4828522f37909008e8dfa2d45c3c33b404eeda Mon Sep 17 00:00:00 2001 From: Skye <46286597+Skye-31@users.noreply.github.com> Date: Fri, 12 Aug 2022 19:52:07 +0100 Subject: [PATCH] feat: display all listening ports (#332) --- packages/http-server/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/http-server/src/index.ts b/packages/http-server/src/index.ts index 4e26e7ba1..ea9fbe3aa 100644 --- a/packages/http-server/src/index.ts +++ b/packages/http-server/src/index.ts @@ -459,7 +459,8 @@ export async function startServer( server.listen(port, host, () => { const log = mf.log; const protocol = httpsEnabled ? "https" : "http"; - const accessibleHosts = host ? [host] : getAccessibleHosts(true); + const accessibleHosts = + host && host !== "0.0.0.0" ? [host] : getAccessibleHosts(true); log.info(`Listening on ${host ?? ""}:${port}`); for (const accessibleHost of accessibleHosts) { log.info(`- ${protocol}://${accessibleHost}:${port}`);