This repository was archived by the owner on Mar 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
src/main/java/com/sybit/airtable Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,12 +202,7 @@ private void configureProxy(String endpointUrl) {
202202 if (this .config .getProxy () == null ) {
203203 final String httpProxy = System .getenv ("http_proxy" );
204204 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
211206 && (endpointUrl .contains ("https" ))) {
212207 LOG .info ("Use Proxy: Environment variable 'https_proxy' found and used: " + httpsProxy );
213208 setProxy (httpProxy );
@@ -220,8 +215,10 @@ private void configureProxy(String endpointUrl) {
220215 }
221216 } else if ((endpointUrl .contains ("127.0.0.1" )
222217 || 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'" );
224219 setProxy (null );
220+ } else {
221+ setProxy (this .config .getProxy ());
225222 }
226223 }
227224
You can’t perform that action at this time.
0 commit comments