This commit is contained in:
Justman10000
2022-11-22 20:58:52 +00:00
committed by RemixDev
parent 06305de9cf
commit 58cd8b72f6
2 changed files with 19 additions and 9 deletions

View File

@@ -41,10 +41,11 @@ export function getListeningCb(server: http.Server, debug: Debugger) {
const addr = server.address()
if (addr) {
const bind = typeof addr === 'string' ? 'pipe ' + addr : 'port ' + addr.port
const ip = typeof addr === 'string' ? 'pipe ' + addr : addr.address
const port = typeof addr === 'string' ? 'pipe ' + addr : addr.port
debug(`Listening on ${bind}`)
logger.info(`Listening on ${bind}`)
debug(`Listening on ${ip}:${port}`)
logger.info(`Listening on ${ip}:${port}`)
}
}
}