From aa2a585e009ba0c594402adcb3682eb442c09204 Mon Sep 17 00:00:00 2001 From: Steve-Mcl Date: Mon, 24 Jun 2024 17:34:30 +0100 Subject: [PATCH] should set https and http proxy agents for UI closes #4792 --- .../@node-red/nodes/core/network/21-httprequest.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js b/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js index 6ea4767cf..6561bff22 100644 --- a/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js +++ b/packages/node_modules/@node-red/nodes/core/network/21-httprequest.js @@ -108,7 +108,8 @@ in your Node-RED user directory (${RED.settings.userDir}). if (n.proxy && proxyConfig) { proxyOptions.env = { no_proxy: (proxyConfig.noproxy || []).join(','), - http_proxy: (proxyConfig.url) + http_proxy: (proxyConfig.url), + https_proxy: (proxyConfig.url) } } return getProxyForUrl(url, proxyOptions) @@ -564,7 +565,7 @@ in your Node-RED user directory (${RED.settings.userDir}). //need both incase of http -> https redirect opts.agent = { http: new HttpProxyAgent(proxyOptions), - https: new HttpProxyAgent(proxyOptions) + https: new HttpsProxyAgent(proxyOptions) }; } else {