chore: show network unavailable for explicit localhost

This commit is contained in:
Evan You
2018-07-24 10:31:14 -04:00
parent 17f37187f0
commit 3bddab93cd
@@ -27,7 +27,8 @@ module.exports = function prepareUrls (protocol, host, port, pathname = '/') {
})
const isUnspecifiedHost = host === '0.0.0.0' || host === '::'
let prettyHost, lanUrlForConfig, lanUrlForTerminal
let prettyHost, lanUrlForConfig
let lanUrlForTerminal = chalk.gray('unavailable')
if (isUnspecifiedHost) {
prettyHost = 'localhost'
try {