Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
fix: add ignore check
Browse files Browse the repository at this point in the history
  • Loading branch information
LisoUseInAIKyrios committed Aug 13, 2024
1 parent b774424 commit b6bf9a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class DnsResolverVerificationPatch {
* Checks if s.youtube.com is blacklisted and playback history will fail to work.
*/
public static void checkDnsResolver(Activity context) {
if (!Utils.isNetworkConnected()) return;
if (!Utils.isNetworkConnected() || Settings.IGNORE_DNS_BLOCKER.get()) return;

Utils.runOnBackgroundThread(() -> {
try {
Expand All @@ -44,7 +44,7 @@ public static void checkDnsResolver(Activity context) {
.setPositiveButton(android.R.string.ok, (dialog, which) -> {
dialog.dismiss();
}).setNegativeButton(str("revanced_dns_resolver_verification_dialog_ignore"), (dialog, which) -> {
Settings.IGNORE_NON_RESOLVING_DNS.save(true);
Settings.IGNORE_DNS_BLOCKER.save(true);
dialog.dismiss();
})
.setCancelable(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public class Settings extends BaseSettings {
@Deprecated
public static final StringSetting DEPRECATED_ANNOUNCEMENT_LAST_HASH = new StringSetting("revanced_announcement_last_hash", "");
public static final IntegerSetting ANNOUNCEMENT_LAST_ID = new IntegerSetting("revanced_announcement_last_id", -1);
public static final BooleanSetting IGNORE_NON_RESOLVING_DNS = new BooleanSetting("revanced_ignore_non_resolving_dns", TRUE, false, false);
public static final BooleanSetting IGNORE_DNS_BLOCKER = new BooleanSetting("revanced_ignore_dns_blocker", TRUE, false, false);
public static final BooleanSetting REMOVE_TRACKING_QUERY_PARAMETER = new BooleanSetting("revanced_remove_tracking_query_parameter", TRUE);

// Debugging
Expand Down

0 comments on commit b6bf9a0

Please sign in to comment.