Skip to content

Commit 532c227

Browse files
committed
fix(serve): fix port selection for lab
fixes #3052
1 parent de8a36e commit 532c227

File tree

1 file changed

+1
-1
lines changed
  • packages/@ionic/cli-utils/src/lib

1 file changed

+1
-1
lines changed

packages/@ionic/cli-utils/src/lib/serve.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export abstract class ServeRunner<T extends ServeOptions> extends Runner<T, Serv
334334
const labDetails: LabServeDetails = {
335335
protocol: options.ssl ? 'https' : 'http',
336336
address: options.labHost,
337-
port: await findClosestOpenPort(options.labPort, '0.0.0.0'),
337+
port: await findClosestOpenPort(options.labPort, options.labHost),
338338
};
339339

340340
if (options.ssl) {

0 commit comments

Comments
 (0)