From 0cf32943bc0d5cf2ae1f9a6cb5e349323569e41e Mon Sep 17 00:00:00 2001 From: ofk Date: Wed, 6 Mar 2019 11:07:17 +0900 Subject: [PATCH] Use the specified host --- packages/core/parcel-bundler/src/cli.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/parcel-bundler/src/cli.js b/packages/core/parcel-bundler/src/cli.js index 0ecb014fedb..3f373ab7673 100755 --- a/packages/core/parcel-bundler/src/cli.js +++ b/packages/core/parcel-bundler/src/cli.js @@ -222,7 +222,7 @@ async function bundle(main, command) { const server = await bundler.serve(port, command.https, command.host); if (server && command.open) { await require('./utils/openInBrowser')( - `${command.https ? 'https' : 'http'}://localhost:${ + `${command.https ? 'https' : 'http'}://${command.host || 'localhost'}:${ server.address().port }`, command.open