Allow configuring the listen host (#9924)

This commit is contained in:
ledlamp
2023-02-22 00:51:40 -08:00
committed by GitHub
parent f68e13d905
commit 3dfe3aa9a4
5 changed files with 15 additions and 9 deletions

View File

@@ -78,7 +78,7 @@ export async function masterMain() {
await spawnWorkers(config.clusterLimit);
}
bootLogger.succ(`Now listening on port ${config.port} on ${config.url}`, null, true);
bootLogger.succ(`Now listening on ${config.host ? `[${config.host}]:` : ''}${config.port} for ${config.url}`, null, true);
}
function showEnvironment(): void {