Skip to content

Commit ebe7ce4

Browse files
authoredJul 28, 2020
fix(server): echo the hostname rather than listenAddress (#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.
1 parent f1e85dc commit ebe7ce4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ class Server extends KarmaEventEmitter {
177177
}
178178

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

182182
this.emit('listening', config.port)
183183
if (config.browsers && config.browsers.length) {

0 commit comments

Comments
 (0)
Please sign in to comment.