From 70f1008093c3ab434c5a9179c64568ddcf1d0918 Mon Sep 17 00:00:00 2001 From: ofk Date: Mon, 11 Mar 2019 13:48:35 +0900 Subject: [PATCH] Use the specified host (#2763) --- 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 7c3d5c5193d..f65b7bb580b 100755 --- a/packages/core/parcel-bundler/src/cli.js +++ b/packages/core/parcel-bundler/src/cli.js @@ -224,7 +224,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