From f070f48d9ab5a82315ac1895cc9a01cf534e00f4 Mon Sep 17 00:00:00 2001 From: johnjbarton Date: Tue, 28 Jul 2020 11:10:39 -0700 Subject: [PATCH] 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. --- lib/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.js b/lib/server.js index e79a2aa22..597404ce0 100644 --- a/lib/server.js +++ b/lib/server.js @@ -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) {