|
|
|
@ -1,8 +1,11 @@
|
|
|
|
|
package com.monke.monkeybook;
|
|
|
|
|
|
|
|
|
|
import android.content.SharedPreferences;
|
|
|
|
|
|
|
|
|
|
import com.monke.monkeybook.utils.AESUtil;
|
|
|
|
|
|
|
|
|
|
import org.jsoup.helper.StringUtil;
|
|
|
|
|
|
|
|
|
|
import java.util.regex.Pattern;
|
|
|
|
|
|
|
|
|
|
public class ProxyManager {
|
|
|
|
@ -16,6 +19,7 @@ public class ProxyManager {
|
|
|
|
|
private static final String proxyHttpMatch = "(http|ftp|https):\\/\\/[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%&:/~\\+#]*[\\w\\-\\@?^=%&/~\\+#])?";//http正则表达式
|
|
|
|
|
private static final String proxyPackageNameEncode = "代理包名加密key";
|
|
|
|
|
public static String packAgeEncode; //加密后的包名
|
|
|
|
|
|
|
|
|
|
public static void saveProxyState(boolean state) {
|
|
|
|
|
proxyState = state;
|
|
|
|
|
SharedPreferences.Editor editor = MApplication.getInstance().getSharedPreferences("CONFIG", 0).edit();
|
|
|
|
|