This repository was archived by the owner on Mar 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/main/java/com/sybit/airtable Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -202,12 +202,7 @@ private void configureProxy(String endpointUrl) {
202
202
if (this .config .getProxy () == null ) {
203
203
final String httpProxy = System .getenv ("http_proxy" );
204
204
final String httpsProxy = System .getenv ("https_proxy" );
205
- if (httpProxy != null
206
- && (endpointUrl .contains ("127.0.0.1" )
207
- || endpointUrl .contains ("localhost" ))) {
208
- LOG .info ("Use Proxy: ignored for 'localhost' ann '127.0.0.1'" );
209
- setProxy (null );
210
- } else if (httpsProxy != null
205
+ if (httpsProxy != null
211
206
&& (endpointUrl .contains ("https" ))) {
212
207
LOG .info ("Use Proxy: Environment variable 'https_proxy' found and used: " + httpsProxy );
213
208
setProxy (httpProxy );
@@ -220,8 +215,10 @@ private void configureProxy(String endpointUrl) {
220
215
}
221
216
} else if ((endpointUrl .contains ("127.0.0.1" )
222
217
|| endpointUrl .contains ("localhost" ))) {
223
- LOG .info ("Use Proxy: ignored for 'localhost' ann '127.0.0.1'" );
218
+ LOG .info ("Use Proxy: ignored for 'localhost' and '127.0.0.1'" );
224
219
setProxy (null );
220
+ } else {
221
+ setProxy (this .config .getProxy ());
225
222
}
226
223
}
227
224
You can’t perform that action at this time.
0 commit comments