diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f9a053ff..475b5d9d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - Refactored various components to use self-closing tags +- Refactored server started message to print IPv6 addresses correctly ## 2.207.0 - 2025-10-08 diff --git a/apps/api/src/main.ts b/apps/api/src/main.ts index 6ff2e77e9..a8de3dc5e 100644 --- a/apps/api/src/main.ts +++ b/apps/api/src/main.ts @@ -92,14 +92,18 @@ async function bootstrap() { logLogo(); let address = app.getHttpServer().address(); + if (typeof address === 'object') { - const addressObj = address; - let host = addressObj.address; - if (addressObj.family === 'IPv6') { - host = `[${addressObj.address}]`; + const addressObject = address; + let host = addressObject.address; + + if (addressObject.family === 'IPv6') { + host = `[${addressObject.address}]`; } - address = `${host}:${addressObj.port}`; + + address = `${host}:${addressObject.port}`; } + Logger.log(`Listening at http://${address}`); Logger.log(''); });