Removed call to secureEndpoint in https-proxy-agent

This commit is contained in:
Joshua Rose 2018-05-10 09:13:29 -04:00
parent f493885714
commit 8d9cda2fc7

View File

@ -127,9 +127,7 @@ class AwsProvider {
|| process.env.https_proxy;
if (proxy) {
const proxyOptions = url.parse(proxy);
proxyOptions.secureEndpoint = true;
AWS.config.httpOptions.agent = new HttpsProxyAgent(proxyOptions);
AWS.config.httpOptions.agent = new HttpsProxyAgent(url.parse(proxy));
}
const ca = process.env.ca