Skip to content

Commit

Permalink
fix: set correct property for nonProxyHosts
Browse files Browse the repository at this point in the history
While there are different system properties for http and https proxies, there is only one shared property for proxy exclusions: http.nonProxyHosts

Setting https.nonProxyHosts has no effect on any recent JDK

Fixes jeremylong#6283
  • Loading branch information
weyhmueller committed Dec 12, 2023
1 parent 17186db commit 710ee5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2194,7 +2194,7 @@ protected void populateSettings() {
System.setProperty("https.proxyPassword", mavenProxy.getPassword());
}
if (mavenProxy.getNonProxyHosts() != null && !mavenProxy.getNonProxyHosts().isEmpty()) {
System.setProperty("https.nonProxyHosts", mavenProxy.getNonProxyHosts());
System.setProperty("http.nonProxyHosts", mavenProxy.getNonProxyHosts());
}
}

Expand Down

0 comments on commit 710ee5a

Please sign in to comment.