@aikidosec/broker-client 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/client.js +7 -1
- package/package.json +1 -1
package/app/client.js
CHANGED
|
@@ -231,7 +231,13 @@ function isInternalUrl(url) {
|
|
|
231
231
|
|
|
232
232
|
let agent;
|
|
233
233
|
if (process.env.HTTPS_PROXY || process.env.ALL_PROXY) {
|
|
234
|
-
|
|
234
|
+
const agentProxyEnv = {}
|
|
235
|
+
if (process.env.NO_PROXY) {
|
|
236
|
+
// when the NO_PROXY env var is set, we need to set it for the proxyEnv specifically of this agent so it is taken into account
|
|
237
|
+
agentProxyEnv["NO_PROXY"] = process.env.NO_PROXY;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
agent = new HttpsProxyAgent(process.env.HTTPS_PROXY || process.env.ALL_PROXY, { proxyEnv: agentProxyEnv });
|
|
235
241
|
}
|
|
236
242
|
|
|
237
243
|
// Create Socket.IO client
|
package/package.json
CHANGED