Fix format of IPv6 URI

This commit is contained in:
Paul Oppenheimer 2019-12-16 12:24:30 -05:00
parent 8fb8b94650
commit dcf08ecac6

View file

@ -154,6 +154,10 @@ module.exports = function(options = {}) {
const protocol = Helper.config.https.enable ? "https" : "http";
const address = server.address();
if (address.family === "IPv6") {
address.address = "[" + address.address + "]";
}
log.info(
"Available at " +
colors.green(`${protocol}://${address.address}:${address.port}/`) +