Skip to content

Commit da25bb1

Browse files
committed
fix: proxy fix
1 parent 35241e7 commit da25bb1

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

bin/accessibility-automation/helper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,9 +155,11 @@ const nodeRequest = (type, url, data, config) => {
155155
};
156156

157157
if(process.env.HTTP_PROXY){
158+
options.proxy = false
158159
options.httpsAgent = new HttpsProxyAgent(process.env.HTTP_PROXY);
159160

160161
} else if (process.env.HTTPS_PROXY){
162+
options.proxy = false
161163
options.httpsAgent = new HttpsProxyAgent(process.env.HTTPS_PROXY);
162164
}
163165

bin/testObservability/crashReporter/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,10 @@ class CrashReporter {
157157
};
158158

159159
if(process.env.HTTP_PROXY){
160+
options.proxy = false
160161
options.httpsAgent = new HttpsProxyAgent(process.env.HTTP_PROXY);
161162
} else if (process.env.HTTPS_PROXY){
163+
options.proxy = false
162164
options.httpsAgent = new HttpsProxyAgent(process.env.HTTPS_PROXY);
163165
}
164166

bin/testObservability/helper/helper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ const nodeRequest = (type, url, data, config) => {
134134
};
135135

136136
if(process.env.HTTP_PROXY){
137+
options.proxy = false
137138
options.httpsAgent = new HttpsProxyAgent(process.env.HTTP_PROXY);
138139
} else if (process.env.HTTPS_PROXY){
140+
options.proxy = false
139141
options.httpsAgent = new HttpsProxyAgent(process.env.HTTPS_PROXY);
140142
}
141143

0 commit comments

Comments
 (0)