Removed app DNS cache

This commit is contained in:
M66B
2024-06-21 16:19:29 +02:00
parent 6494590aff
commit f2502b181e
3 changed files with 2 additions and 26 deletions

View File

@@ -465,15 +465,6 @@ public class DnsHelper {
return result;
}
static void clear(Context context) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
SharedPreferences.Editor editor = prefs.edit();
for (String key : prefs.getAll().keySet())
if (key != null && key.startsWith("dns."))
editor.remove(key);
editor.apply();
}
static boolean hasDnsSec() {
if (BuildConfig.PLAY_STORE_RELEASE)
return false;