mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
parent
f9e6bccd46
commit
aa2a585e00
@ -108,7 +108,8 @@ in your Node-RED user directory (${RED.settings.userDir}).
|
|||||||
if (n.proxy && proxyConfig) {
|
if (n.proxy && proxyConfig) {
|
||||||
proxyOptions.env = {
|
proxyOptions.env = {
|
||||||
no_proxy: (proxyConfig.noproxy || []).join(','),
|
no_proxy: (proxyConfig.noproxy || []).join(','),
|
||||||
http_proxy: (proxyConfig.url)
|
http_proxy: (proxyConfig.url),
|
||||||
|
https_proxy: (proxyConfig.url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return getProxyForUrl(url, proxyOptions)
|
return getProxyForUrl(url, proxyOptions)
|
||||||
@ -564,7 +565,7 @@ in your Node-RED user directory (${RED.settings.userDir}).
|
|||||||
//need both incase of http -> https redirect
|
//need both incase of http -> https redirect
|
||||||
opts.agent = {
|
opts.agent = {
|
||||||
http: new HttpProxyAgent(proxyOptions),
|
http: new HttpProxyAgent(proxyOptions),
|
||||||
https: new HttpProxyAgent(proxyOptions)
|
https: new HttpsProxyAgent(proxyOptions)
|
||||||
};
|
};
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user