From 8d9cda2fc7f971fd75b41b8451f73a8c69e8cfda Mon Sep 17 00:00:00 2001 From: Joshua Rose Date: Thu, 10 May 2018 09:13:29 -0400 Subject: [PATCH] Removed call to secureEndpoint in https-proxy-agent --- lib/plugins/aws/provider/awsProvider.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/plugins/aws/provider/awsProvider.js b/lib/plugins/aws/provider/awsProvider.js index 51d4d9971..ee21dfd8b 100644 --- a/lib/plugins/aws/provider/awsProvider.js +++ b/lib/plugins/aws/provider/awsProvider.js @@ -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