diff --git a/app/src/main/java/org/itxtech/daedalus/Daedalus.java b/app/src/main/java/org/itxtech/daedalus/Daedalus.java index 2b2c045..a2610dc 100644 --- a/app/src/main/java/org/itxtech/daedalus/Daedalus.java +++ b/app/src/main/java/org/itxtech/daedalus/Daedalus.java @@ -12,13 +12,11 @@ import android.net.Uri; import android.os.Build; import android.preference.PreferenceManager; import android.util.Log; - import com.google.firebase.crash.FirebaseCrash; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonParseException; import com.google.gson.stream.JsonReader; - import org.itxtech.daedalus.activity.MainActivity; import org.itxtech.daedalus.service.DaedalusVpnService; import org.itxtech.daedalus.util.Configurations; @@ -175,6 +173,8 @@ public class Daedalus extends Application { break; } } + } else { + RuleResolver.clear(); } } } diff --git a/app/src/main/java/org/itxtech/daedalus/util/RuleResolver.java b/app/src/main/java/org/itxtech/daedalus/util/RuleResolver.java index 6f09d75..78057b2 100644 --- a/app/src/main/java/org/itxtech/daedalus/util/RuleResolver.java +++ b/app/src/main/java/org/itxtech/daedalus/util/RuleResolver.java @@ -62,6 +62,7 @@ public class RuleResolver implements Runnable { public static void clear() { rulesA = null; + rulesAAAA = null; } public static String resolve(String hostname, Record.TYPE type) {