Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanV2 committed Apr 10, 2023
1 parent 9fe62d8 commit 6c7f56a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hue/rest-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class RestClient {
}

// Add a default agent
if (this.baseOptions.agent === undefined) {
if (this.baseOptions.agent === undefined && this.baseUrl.startsWith("https://")) {
// Hue uses a self-signed certificate, so we need to disable certificate validation
const httpsAgent = new https.Agent({
rejectUnauthorized: false,
Expand Down

0 comments on commit 6c7f56a

Please sign in to comment.