some proxy updates
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user