peter-murray / node-hue-api

Node.js Library for interacting with the Philips Hue Bridge and Lights
Apache License 2.0
1.18k stars 145 forks source link

Disable HTTP proxy #173

Open benbucksch opened 4 years ago

benbucksch commented 4 years ago

Fixes #171

As shown in Bug #171, the HTTP proxy support is a) only completely broken, and b) makes no sense in this case. The proxy should not be used to contact a device on the local network. And the Hue bridge won't use a proxy to contact the Hue server, so neither should we, to be consistent.

This disables the proxy when making requests to the local bridge and the Hue server.

This fixes the code for me. Without this fix, everything simply fails when a proxy is configured for HTTPS.