mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Pass proxy
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
05e4533096
commit
345cdf5c9d
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue