Skip to content

Commit

Permalink
fix proxy version update (#1264)
Browse files Browse the repository at this point in the history
  • Loading branch information
massimocandela committed Mar 15, 2024
1 parent eb3e7ee commit ac837d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/generatePrefixesList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ac837d0

Please sign in to comment.