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 type: query_matcher
args: args:
domain: domain:
- "ext:./serverlist.txt" - "ext:/usr/share/v2ray/geosite.dat:category-ads-all"

View File

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