Skip to content

Commit

Permalink
fix(server): echo the hostname rather than listenAddress (karma-runne…
Browse files Browse the repository at this point in the history
…r#3532)

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 authored and anthony-redFox committed May 5, 2023
1 parent 74c56c5 commit f070f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
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 f070f48

Please sign in to comment.