Pass proxy

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2024-01-02 19:10:41 +00:00
parent 05e4533096
commit 345cdf5c9d
No known key found for this signature in database
GPG Key ID: 5E39D70B4C93C38E

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);
}
}