Skip to content

Commit

Permalink
fix(serve): fix port selection for lab
Browse files Browse the repository at this point in the history
fixes #3052
  • Loading branch information
imhoffd committed Apr 2, 2018
1 parent de8a36e commit 532c227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@ionic/cli-utils/src/lib/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export abstract class ServeRunner<T extends ServeOptions> extends Runner<T, Serv
const labDetails: LabServeDetails = {
protocol: options.ssl ? 'https' : 'http',
address: options.labHost,
port: await findClosestOpenPort(options.labPort, '0.0.0.0'),
port: await findClosestOpenPort(options.labPort, options.labHost),
};

if (options.ssl) {
Expand Down

0 comments on commit 532c227

Please sign in to comment.