-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fallback 后不执行后续操作 #633
Comments
试试 cb59496 |
那是否可以fallback套娃?例如想远程IP优先的fallback套娃,请问以下写法是否可行? #本地IP Sequence
- tag: local_ip_sequence
type: sequence
args:
- exec: $local_forward
- exec: jump drop !local_ip
#远程IP Sequence
- tag: local_forward_remote_ip_sequence
type: sequence
args:
- exec: $local_forward
- exec: jump drop local_ip
- tag: remote_forward_remote_ip_sequence
type: sequence
args:
- exec: $remote_forward
- exec: jump drop local_ip
#fallback远程IP
- tag: fallback_remote_ip
type: fallback
args:
primary: remote_forward_remote_ip_sequence
secondary: local_forward_remote_ip_sequence
threshold: 500
always_standby: false #回滚时不采用
#fallback
- tag: fallback
type: fallback
args:
primary: local_ip_sequence
secondary: remote_forward
threshold: 500
always_standby: true
#fallback套娃
- tag: fallback_balance
type: fallback
args:
primary: fallback_remote_ip
secondary: fallback
threshold: 500
always_standby: true |
fallback是可执行插件,可以套娃。
不太懂这个逻辑。你自己试试。 |
一些偶尔上的网站它们IP不在中国,如果遇到抽风上不了,就想fallback后二次fallback再尝试,以前是fallback不执行后续操作,现在可以了,但又感觉是不是多余了(偶尔多刷新几次又能上)。 - tag: main
type: sequence
args:
- exec: $fallback
- matches:
- qname &./greylist.txt
exec: $fallback_balance |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在提交之前,请确认
mosdns 版本
v5.1.2
操作系统
all
Bug 描述和复现步骤
fallback执行完直接返回结束了,导致无法完成后续操作.诸如用black_hole修改应答
可用 use.fontawesome.com 测试
不用fallback比如这样,就可正常修改
使用的配置文件
mosdns 的 log 记录
No response
The text was updated successfully, but these errors were encountered: