Skip to content

Commit

Permalink
Update platform.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Dec 31, 2023
1 parent 6d735b5 commit e43cfed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export class CloudflaredTunnelPlatform implements DynamicPlatformPlugin {
protocol: config.protocol as 'http' | 'https' | undefined, // Updated type
verifyTLS: config.verifyTLS as boolean,
logging: config.logging as string,
startTunnelAuto: config.startTunnelAuto as boolean,
};


Expand Down Expand Up @@ -142,8 +143,8 @@ export class CloudflaredTunnelPlatform implements DynamicPlatformPlugin {
this.log.info('Starting Tunnel in Manual Install Mode');
tunnel = await startTunnel(options);
}
this.log.info('Waiting 5 minute for tunnel to install and start');
await setTimeout(300000); // 5 minute in milliseconds
this.log.info('Waiting 1 minute for tunnel to install and start');
await setTimeout(60000); // 1 minute in milliseconds
this.log.info(`Tunnel URL: ${JSON.stringify(tunnel?.getURL())}`);
}

Expand Down

0 comments on commit e43cfed

Please sign in to comment.