[FIXED HUDSON-5271] in 1.342. Automatic tool installation wasn't honoring proxy setting.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@25811 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2010-01-14 15:36:13 +00:00
1 parent b6fbebe9ea
commit 29cdfb670d
6 files changed
+16 -6

No files matched your search

@@ -105,6 +105,9 @@ public final class ProxyConfiguration implements Saveable {
return null;
}
/**
* This method should be used wherever {@link URL#openConnection()} to internet URLs is invoked directly.
*/
public static URLConnection open(URL url) throws IOException {
ProxyConfiguration p = Hudson.getInstance().proxy;
if(p==null)