Skip to content

Commit

Permalink
fix(server): echo the hostname rather than listenAddress (#3532)
Browse files Browse the repository at this point in the history
The listenAddress is an IP level number, which may be "::" on IPV6.
The hostname is a string set in a /etc config file.
When these differ the hostname is clearer.
  • Loading branch information
johnjbarton committed Jul 28, 2020
1 parent f1e85dc commit ebe7ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Expand Up @@ -177,7 +177,7 @@ class Server extends KarmaEventEmitter {
}

webServer.listen(this._boundServer, () => {
this.log.info(`Karma v${constant.VERSION} server started at ${config.protocol}//${config.listenAddress}:${config.port}${config.urlRoot}`)
this.log.info(`Karma v${constant.VERSION} server started at ${config.protocol}//${config.hostname}:${config.port}${config.urlRoot}`)

this.emit('listening', config.port)
if (config.browsers && config.browsers.length) {
Expand Down

0 comments on commit ebe7ce4

Please sign in to comment.