diff --git a/lib/listening.js b/lib/listening.js index 3412215..45e5cb2 100644 --- a/lib/listening.js +++ b/lib/listening.js @@ -136,7 +136,8 @@ module.exports = async (server, inUse, flags, sockets) => { message += '\n\n' - const localURL = `http://localhost:${details.port}` + const host = flags.host === '::' ? 'localhost' : flags.host; + const localURL = `http://${host}:${details.port}` message += `• ${chalk.bold('Local: ')} ${localURL}\n` message += `• ${chalk.bold('On Your Network: ')} ${url}\n\n`