aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/icedteanp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/icedteanp')
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginMain.java2
-rw-r--r--plugin/icedteanp/java/sun/applet/PluginProxySelector.java5
2 files changed, 6 insertions, 1 deletions
diff --git a/plugin/icedteanp/java/sun/applet/PluginMain.java b/plugin/icedteanp/java/sun/applet/PluginMain.java
index 3ceb119..3bfbfff 100644
--- a/plugin/icedteanp/java/sun/applet/PluginMain.java
+++ b/plugin/icedteanp/java/sun/applet/PluginMain.java
@@ -231,7 +231,7 @@ public class PluginMain {
Authenticator.setDefault(new JNLPAuthenticator());
}
// override the proxy selector set by JNLPRuntime
- ProxySelector.setDefault(new PluginProxySelector());
+ ProxySelector.setDefault(new PluginProxySelector(JNLPRuntime.getConfiguration()));
}
private static void setCookieHandler(PluginStreamHandler streamHandler) {
diff --git a/plugin/icedteanp/java/sun/applet/PluginProxySelector.java b/plugin/icedteanp/java/sun/applet/PluginProxySelector.java
index 32360fe..af6efc6 100644
--- a/plugin/icedteanp/java/sun/applet/PluginProxySelector.java
+++ b/plugin/icedteanp/java/sun/applet/PluginProxySelector.java
@@ -43,6 +43,7 @@ import java.net.URI;
import java.util.ArrayList;
import java.util.List;
+import net.sourceforge.jnlp.config.DeploymentConfiguration;
import net.sourceforge.jnlp.runtime.JNLPProxySelector;
import net.sourceforge.jnlp.util.TimedHashMap;
@@ -59,6 +60,10 @@ public class PluginProxySelector extends JNLPProxySelector {
private TimedHashMap<String, Proxy> proxyCache = new TimedHashMap<String, Proxy>();
+ public PluginProxySelector(DeploymentConfiguration config) {
+ super(config);
+ }
+
/**
* Selects the appropriate proxy (or DIRECT connection method) for the given URI
*