mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
Update RouteEntity.cpp
This commit is contained in:
parent
90498afeb7
commit
47d10b1fa2
@ -584,13 +584,13 @@ namespace Configs {
|
||||
MW_show_log("Aborted generating routing section, an error has occurred");
|
||||
return {};
|
||||
}
|
||||
if (Configs::dataStore->adblock_enable && rule_json["action"] == "route") {
|
||||
if (!added_adblock && Configs::dataStore->adblock_enable && rule_json["action"] == "route") {
|
||||
res += createAdblockRule();
|
||||
added_adblock = true;
|
||||
}
|
||||
res += rule_json;
|
||||
}
|
||||
if (Configs::dataStore->adblock_enable && !added_adblock)
|
||||
if (!added_adblock && Configs::dataStore->adblock_enable)
|
||||
res += createAdblockRule();
|
||||
|
||||
return res;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user