whitelist priority

This commit is contained in:
sbwml 2022-04-08 20:40:30 +08:00
parent 73a309951c
commit a1c4763640
2 changed files with 6 additions and 12 deletions

View File

@ -93,4 +93,4 @@ plugin:
type: query_matcher
args:
domain:
- "ext:./serverlist.txt"
- "ext:/usr/share/v2ray/geosite.dat:category-ads-all"

View File

@ -22,12 +22,6 @@ plugin:
type: sequence
args:
exec:
- if:
- query_is_ad_domain
- qtype65
exec:
- _block_with_nxdomain
- _return
- if:
- query_is_whitelist_domain
- query_is_local_domain
@ -35,6 +29,11 @@ plugin:
exec:
- forward_local
- _return
- if:
- query_is_ad_domain
exec:
- _block_with_nxdomain
- _return
- if:
- query_is_non_local_domain
exec:
@ -100,8 +99,3 @@ plugin:
args:
domain:
- ${{ ./ad_domain.sh }}
- tag: qtype65
type: query_matcher
args:
qtype: [65]