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 30, 2023
1 parent 1a86ec5 commit 9f6dc3b
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 @@ -131,12 +131,13 @@ export class CloudflaredTunnelPlatform implements DynamicPlatformPlugin {
async discoverDevices() {
try {
this.log.info(JSON.stringify(this.config));
const url = this.config.url || `${this.config.protocol}://${this.config.hostname}:${this.config.port}`;
//const url = this.config.url || `${this.config.protocol}://${this.config.hostname}:${this.config.port}`;
//Default: {protocol}://{hostname}:{port}
//The local server URL to tunnel.
//let tunnel: Tunnel | undefined;
//if (this.config.startTunnelAuto) {
const tunnel = await startTunnelAuto({ url: url, verifyTLS: this.config.verifyTLS });
this.log.info(JSON.stringify(this.config));
const tunnel = await startTunnelAuto({ url: 'http://198.19.249.2:8581' });
//} else {
// tunnel = await startTunnel({ url: url, verifyTLS: this.config.verifyTLS });
//}
Expand Down

0 comments on commit 9f6dc3b

Please sign in to comment.