Skip to content

Conversation

@krizmanmarko
Copy link

JVM proxy settings (http.proxyHost, http.proxyPort, https.proxyHost, https.proxyPort) are ignored when using RequestConfig.custom(). Such fetches completely ignore http(s) proxy.

This behaviour was observed in 3 files:

  • /src/main/java/nl/sidnlabs/entrada/enrich/resolver/CloudFlareResolverCheck.java
  • /src/main/java/nl/sidnlabs/entrada/enrich/resolver/OpenDNSResolverCheck.java
  • /src/main/java/nl/sidnlabs/entrada/util/DownloadUtil.java

System properties can be enabled using the following changes and adding options to JAVA_OPTS.

krizmanmarko and others added 2 commits January 4, 2024 16:04
JVM proxy settings (http.proxyHost, http.proxyPort, https.proxyHost, https.proxyPort)
are ignored when using RequestConfig.custom(). Such fetches completely ignore http(s)
proxy. System properties can be taken into account by using an extra function
useSystemProperties() on HttpClientBuilder object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant