请问是我对accept的理解有问题吗? #637
-
版本号:V5.1.1
关键配置如下 # 转发到clash
- tag: forward_fake_ip
type: forward
args:
concurrent: 1
upstreams:
- tag: forward_clash
addr: "127.0.0.1:55553"
# 国内域名转发流程
- tag: local_sequence
type: sequence
args:
- exec: $forward_local
- matches: resp_ip $local_ip
exec: accept
- exec: reject
# 国外域名转发流程
- tag: remote_sequence
type: sequence
args:
- exec: $forward_remote
- exec: accept
# fallback流程
- tag: fallback_sequence
type: fallback
args:
primary: local_sequence
secondary: remote_sequence
threshold: 500
always_standby: true
# direct流程
- tag: direct_sequence
type: sequence
args:
- exec: $cache
- matches: has_resp
exec: accept
- exec: $fallback_sequence
- exec: accept
# 主流程
- tag: main_sequence
type: sequence
args:
- matches: qtype 65
exec: reject 3
- exec: prefer_ipv4
- matches: qname $direct_domain
exec: $direct_sequence
- matches: qname $proxy_domain
exec: $forward_fake_ip
- exec: accept
问题是,direct_sequence中最后执行了accept,fallback插件的两个流程中也分别有accept,但是main_sequence中似乎并没有停止执行后续规则,还是转发到了clash mosdns的wiki里对accept是这样描述的
我理解的是只要执行了accept,内层和外层的sequence都不再继续执行了,请问是我理解的不对吗? |
Beta Was this translation helpful? Give feedback.
Answered by
urlesistiana
Mar 8, 2023
Replies: 2 comments 12 replies
-
你的理解没问题。fallback 的 bug #633 编译 HEAD 试试? |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
2cydg
-
铁子,问个问题,就是转发dns给clash解析的话,防火墙或者clash的dns需要其他设置吗? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你的理解没问题。fallback 的 bug #633
编译 HEAD 试试?