Fix format of IPv6 URI
This commit is contained in:
parent
8fb8b94650
commit
dcf08ecac6
@ -154,6 +154,10 @@ module.exports = function(options = {}) {
|
|||||||
const protocol = Helper.config.https.enable ? "https" : "http";
|
const protocol = Helper.config.https.enable ? "https" : "http";
|
||||||
const address = server.address();
|
const address = server.address();
|
||||||
|
|
||||||
|
if (address.family === "IPv6") {
|
||||||
|
address.address = "[" + address.address + "]";
|
||||||
|
}
|
||||||
|
|
||||||
log.info(
|
log.info(
|
||||||
"Available at " +
|
"Available at " +
|
||||||
colors.green(`${protocol}://${address.address}:${address.port}/`) +
|
colors.green(`${protocol}://${address.address}:${address.port}/`) +
|
||||||
|
Loading…
Reference in New Issue
Block a user