luci-app-mosdns: fix query_is_apple_domain
原来代码这里一定会有返回值,导致开启了“Apple 域名解析优化”之后,不会走后面的流程了。 这次提交有两个修改: 1、先判断是否apple域名,非apple域名直接返回; 2、优先使用`local_dns`解析
This commit is contained in:
parent
eb9b7c0d31
commit
3b1366cd94
@ -179,8 +179,9 @@ plugins:
|
|||||||
- tag: query_is_apple_domain
|
- tag: query_is_apple_domain
|
||||||
type: sequence
|
type: sequence
|
||||||
args:
|
args:
|
||||||
- matches: qname $geosite_apple
|
- matches: "!qname $geosite_apple"
|
||||||
exec: $forward_dnspod_udp
|
exec: return
|
||||||
|
- exec: $forward_local
|
||||||
- matches: "!resp_ip $geoip_cn"
|
- matches: "!resp_ip $geoip_cn"
|
||||||
exec: drop_resp
|
exec: drop_resp
|
||||||
- matches: "!has_resp"
|
- matches: "!has_resp"
|
||||||
|
Loading…
Reference in New Issue
Block a user