some proxy updates

This commit is contained in:
gdlbo
2023-02-13 12:35:38 +03:00
parent efb909ce64
commit b44dae69a6
2 changed files with 2 additions and 1 deletions
@@ -133,6 +133,7 @@ public class ProxyUtils {
}
public static void setProxy() throws IOException {
if (!isAnyProxyEnabled()) return;
switch (getPrefsValue("proxy")) {
case "zaborona" -> Zaborona.loadProxy();
case "randomproxy" -> RandomProxy.loadProxy();
@@ -154,5 +155,6 @@ public class ProxyUtils {
clearProperty("http.proxyPassword");
clearProperty("socksProxyHost");
clearProperty("socksPortHost");
forceProxyApplying();
} // Reset all proxies
}
@@ -43,7 +43,6 @@ public class RandomProxy {
edit().putString("random_type", "none").putString("random_host", "").commit();
resetProxy();
forceProxyApplying();
showProxyResult = true;
getProxy();