Commit a8171c13 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

[JM-752] Added proxy support for actually downloading plugin.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10769 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7d33bf96
......@@ -233,6 +233,12 @@ public class UpdateManager extends BasicModule {
boolean installed = false;
// Download and install new version of plugin
HttpClient httpClient = new HttpClient();
// Check if a proxy should be used
if (isUsingProxy()) {
HostConfiguration hc = new HostConfiguration();
hc.setProxy(getProxyHost(), getProxyPort());
httpClient.setHostConfiguration(hc);
}
GetMethod getMethod = new GetMethod(url);
//execute the method
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment