Skip to content

Commit 00ee8c1

Browse files
authoredJun 6, 2023
fix: show network URLs when --host 0.0.0.0 (#13438)
1 parent 17511e0 commit 00ee8c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/vite/src/node/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ export async function resolveServerUrls(
897897
const base =
898898
config.rawBase === './' || config.rawBase === '' ? '/' : config.rawBase
899899

900-
if (hostname.host) {
900+
if (hostname.host !== undefined && !wildcardHosts.has(hostname.host)) {
901901
let hostnameName = hostname.name
902902
// ipv6 host
903903
if (hostnameName.includes(':')) {

0 commit comments

Comments
 (0)
Please sign in to comment.