connection: fixed really disabled proxy usage (related to #13549);

This commit is contained in:
Oleg Agafonov 2025-04-17 22:23:39 +04:00
parent 72f9d1b8cb
commit c3b57f1973

View file

@ -129,6 +129,10 @@ public class XmageURLConnection {
} }
this.proxy = Proxy.NO_PROXY; this.proxy = Proxy.NO_PROXY;
if (!PreferencesDialog.NETWORK_ENABLE_PROXY_SUPPORT) {
return;
}
if (type != Proxy.Type.DIRECT) { if (type != Proxy.Type.DIRECT) {
try { try {
String address = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_PROXY_ADDRESS, ""); String address = PreferencesDialog.getCachedValue(PreferencesDialog.KEY_PROXY_ADDRESS, "");