Skip to content

Commit

Permalink
fix: show network URLs when --host 0.0.0.0 (#13438)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Jun 6, 2023
1 parent 17511e0 commit 00ee8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/utils.ts
Expand Up @@ -897,7 +897,7 @@ export async function resolveServerUrls(
const base =
config.rawBase === './' || config.rawBase === '' ? '/' : config.rawBase

if (hostname.host) {
if (hostname.host !== undefined && !wildcardHosts.has(hostname.host)) {
let hostnameName = hostname.name
// ipv6 host
if (hostnameName.includes(':')) {
Expand Down

0 comments on commit 00ee8c1

Please sign in to comment.