mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-04-21 20:08:41 -05:00
chore: show network unavailable for explicit localhost
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user