Skip to content

Commit

Permalink
feat: display all listening ports (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skye-31 committed Aug 12, 2022
1 parent 810ceda commit 5a48285
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/http-server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ export async function startServer<Plugins extends HTTPPluginSignatures>(
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}`);
Expand Down

0 comments on commit 5a48285

Please sign in to comment.