From a706936bce17e317b179c4f1308cb7e849369df7 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 29 May 2019 10:58:14 -0700 Subject: [PATCH] Oops, use valid URL for PAC proxy detection. --- .../main/java/com/threerings/getdown/launcher/ProxyUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/launcher/src/main/java/com/threerings/getdown/launcher/ProxyUtil.java b/launcher/src/main/java/com/threerings/getdown/launcher/ProxyUtil.java index 209c7bb..5665ee2 100644 --- a/launcher/src/main/java/com/threerings/getdown/launcher/ProxyUtil.java +++ b/launcher/src/main/java/com/threerings/getdown/launcher/ProxyUtil.java @@ -80,7 +80,8 @@ public final class ProxyUtil { Reader acjs = new InputStreamReader(new URL(acurl).openStream()); // technically we should be returning all this info and trying each proxy // in succession, but that's complexity we'll leave for another day - for (String proxy : findPACProxiesForURL(acjs, app.getRemoteURL(""))) { + URL configURL = app.getConfigResource().getRemote(); + for (String proxy : findPACProxiesForURL(acjs, configURL)) { if (proxy.startsWith("PROXY ")) { String[] hostPort = splitHostPort(proxy.substring(6)); rhost = hostPort[0];