From ac837d0089baa3a4e1ed652e09a5c213cae0b68f Mon Sep 17 00:00:00 2001 From: Massimo Candela Date: Fri, 15 Mar 2024 14:40:40 +0100 Subject: [PATCH] fix proxy version update (#1264) --- src/env.js | 2 +- src/generatePrefixesList.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/env.js b/src/env.js index c3a16432..1a64b3e3 100644 --- a/src/env.js +++ b/src/env.js @@ -195,7 +195,7 @@ config.connectors = config.connectors if (config.httpProxy) { const {HttpsProxyAgent} = require("https-proxy-agent"); - vector.agent = new HttpsProxyAgent(url.parse(config.httpProxy)); + vector.agent = new HttpsProxyAgent(config.httpProxy); } vector.storage = new Storage({}, config); diff --git a/src/generatePrefixesList.js b/src/generatePrefixesList.js index 9e63104d..176320bb 100644 --- a/src/generatePrefixesList.js +++ b/src/generatePrefixesList.js @@ -42,7 +42,7 @@ module.exports = function generatePrefixes(inputParameters) { let proxy; if (httpProxy) { const {HttpsProxyAgent} = require("https-proxy-agent"); - proxy = new HttpsProxyAgent(url.parse(httpProxy)); + proxy = new HttpsProxyAgent(httpProxy); } axiosEnrich(axios, proxy, clientId);