Skip to content

Commit

Permalink
fix: respect host option when listening
Browse files Browse the repository at this point in the history
close #2032
  • Loading branch information
yyx990803 committed Feb 15, 2021
1 parent ddfcbce commit 3c53f82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ async function startServer(

httpServer.on('error', onError)

httpServer.listen(port, () => {
httpServer.listen(port, options.host || undefined, () => {
httpServer.removeListener('error', onError)

info(`\n ⚡ Vite dev server running at:\n`, {
Expand Down

0 comments on commit 3c53f82

Please sign in to comment.