Commit e089b2ee authored by Administrator's avatar Administrator

update

parent 9488bfff
......@@ -9,6 +9,7 @@ import com.virjar.ratel.api.hint.RatelEngineVersion;
import com.virjar.ratel.api.providers.ContentProviderFakeRegister;
import com.virjar.ratel.api.scheduler.SchedulerTaskBeanHandler;
import java.util.Properties;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArraySet;
......@@ -156,4 +157,18 @@ public class RatelToolKit {
public static String TAG = null;
/**
* 设置系统代理
*
* @param host host
* @param port port
*/
public static void setupHttpProxy(String host, int port) {
Properties prop = System.getProperties();
prop.setProperty("http.proxyHost", host);
prop.setProperty("http.proxyPort", String.valueOf(port));
prop.setProperty("https.proxyHost", host);
prop.setProperty("https.proxyPort", String.valueOf(port));
}
}
......@@ -132,7 +132,6 @@ public class JustTrustMe {
RposedBridge.hookMethod(method, new RC_MethodReplacement() {
@Override
protected Object replaceHookedMethod(MethodHookParam param) throws Throwable {
Log.i("weijia", "checkServerTrusted", new Throwable());
return null;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment