mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #3626 from node-red/noproxy-not-defined
MQTT Node: define noproxy variable
This commit is contained in:
commit
7924907384
@ -592,7 +592,7 @@ module.exports = function(RED) {
|
|||||||
// Only for ws or wss, check if proxy env var for additional configuration
|
// Only for ws or wss, check if proxy env var for additional configuration
|
||||||
if (node.brokerurl.indexOf("wss://") > -1 || node.brokerurl.indexOf("ws://") > -1) {
|
if (node.brokerurl.indexOf("wss://") > -1 || node.brokerurl.indexOf("ws://") > -1) {
|
||||||
// check if proxy is set in env
|
// check if proxy is set in env
|
||||||
let prox, noprox;
|
let prox, noprox, noproxy;
|
||||||
if (process.env.http_proxy) { prox = process.env.http_proxy; }
|
if (process.env.http_proxy) { prox = process.env.http_proxy; }
|
||||||
if (process.env.HTTP_PROXY) { prox = process.env.HTTP_PROXY; }
|
if (process.env.HTTP_PROXY) { prox = process.env.HTTP_PROXY; }
|
||||||
if (process.env.no_proxy) { noprox = process.env.no_proxy.split(","); }
|
if (process.env.no_proxy) { noprox = process.env.no_proxy.split(","); }
|
||||||
|
Loading…
Reference in New Issue
Block a user