Skip to content

Commit 3bddab9

Browse files
committed
chore: show network unavailable for explicit localhost
1 parent 17f3718 commit 3bddab9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@vue/cli-service/lib/util/prepareURLs.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ module.exports = function prepareUrls (protocol, host, port, pathname = '/') {
2727
})
2828

2929
const isUnspecifiedHost = host === '0.0.0.0' || host === '::'
30-
let prettyHost, lanUrlForConfig, lanUrlForTerminal
30+
let prettyHost, lanUrlForConfig
31+
let lanUrlForTerminal = chalk.gray('unavailable')
3132
if (isUnspecifiedHost) {
3233
prettyHost = 'localhost'
3334
try {

0 commit comments

Comments
 (0)