node-hue-api
node-hue-api copied to clipboard
Disable HTTP proxy
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.