Pass proxy

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
(cherry picked from commit 345cdf5c9d)
This commit is contained in:
TheKodeToad 2024-01-02 19:10:41 +00:00 committed by github-actions[bot]
parent f31bf5a1f1
commit 36d8ffd3c1

View File

@ -41,6 +41,8 @@ import java.net.Proxy;
import java.net.URL;
import java.net.URLConnection;
import org.prismlauncher.legacy.utils.url.UrlUtils;
public final class OnlineModeFix {
public static URLConnection openConnection(URL address, Proxy proxy) throws IOException {
// we start with "http://www.minecraft.net/game/joinserver.jsp?user=..."
@ -59,6 +61,6 @@ public final class OnlineModeFix {
throw new AssertionError("url should be valid", e);
}
return url.openConnection();
return UrlUtils.openConnection(url, proxy);
}
}