Skip to content

Commit

Permalink
Ensure URL spec format for urls.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkormendy committed Apr 2, 2024
1 parent e1c42aa commit 9230111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ export class KonnectedHomebridgePlatform implements DynamicPlatformPlugin {
}
}

const listeningEndpoint = `http://${listenerObject.ip}:${listenerObject.port}/api/konnected`;
const panelSettingsEndpoint = `http://${panelIP}:${panelPort}/settings`;
const listeningEndpoint = encodeURI(`http://${listenerObject.ip}:${listenerObject.port}/api/konnected`);
const panelSettingsEndpoint = encodeURI(`http://${panelIP}:${panelPort}/settings`);

const bearerAuthToken = uuidv4(); // generate an RFC4122 compliant UUID
this.listenerAuth.push(bearerAuthToken); // add to array for listening authorization
Expand Down

0 comments on commit 9230111

Please # to comment.