Using network proxies with Java applications is still, after all these
years, painful on Linux.

Is there a reason not to change the default value of the system property
`java.net.useSystemProxies` [1] to `true`?

This would still give priority to the system properties `http.proxyHost`,
`ftp.proxyHost`, etc., so people who rely upon those would continue to
get the proxies that they request.

With this change they could also get proxies that they don’t request;
e.g., if they define `http.proxyHost` but not `ftp.proxyHost` then they’d
get the system proxy for the `ftp` protocol, if one is defined.  How much
of a problem is that likely to be?  If that is a problem, would it be
acceptable to ignore all system proxies if any one of the proxy-related
system properties is defined?

- Mark


[1] 
https://docs.oracle.com/en/java/javase/13/docs/api/java.base/java/net/doc-files/net-properties.html#Proxies

Reply via email to