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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 {