Merge pull request #240 from Cosium/java.net.useSystemProxies

Usage of Proxy.NO_PROXY prevents -Djava.net.useSystemProxies=true from kicking in
This commit is contained in:
Michael Bayne
2021-04-05 07:29:42 -07:00
committed by GitHub
2 changed files with 16 additions and 4 deletions
@@ -216,7 +216,7 @@ public final class ProxyUtil {
if (StringUtil.isBlank(host)) {
log.info("Using no proxy");
app.conn = new Connector(Proxy.NO_PROXY);
app.conn = new Connector();
} else {
int pp = StringUtil.isBlank(port) ? 80 : Integer.valueOf(port);
log.info("Using proxy", "host", host, "port", pp, "haveCreds", haveCreds);