Skip to content

Commit

Permalink
fix(serve): await connectivity on specified host, not localhost (#3444)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlabo authored and imhoffd committed Jul 31, 2018
1 parent f767bfb commit bf10674
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@ionic/cli-utils/src/lib/project/angular/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ ${chalk.cyan('[1]')}: ${chalk.bold('https://github.com/angular/angular-cli/wiki/
this.e.log.info(`Waiting for connectivity with ${chalk.green(program)}...`);
}, 5000);

await isHostConnectable('localhost', ngPort);
await isHostConnectable(options.address, ngPort);
clearInterval(interval);

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export class IonicAngularServeRunner extends ServeRunner<IonicAngularServeOption
this.e.log.info(`Waiting for connectivity with ${chalk.green(program)}...`);
}, 5000);

await isHostConnectable('localhost', port);
await isHostConnectable(options.address, port);
clearInterval(interval);

return {
Expand Down
2 changes: 1 addition & 1 deletion packages/@ionic/cli-utils/src/lib/project/ionic1/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class Ionic1ServeRunner extends ServeRunner<Ionic1ServeOptions> {
this.e.log.info(`Waiting for connectivity with ${chalk.green(program)}...`);
}, 5000);

await isHostConnectable('localhost', port);
await isHostConnectable(options.address, port);
clearInterval(interval);

return {
Expand Down

0 comments on commit bf10674

Please sign in to comment.