Skip to content
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

滤镜执行模式的选择 #59

Open
h555fv opened this issue Dec 23, 2024 · 1 comment
Open

滤镜执行模式的选择 #59

h555fv opened this issue Dec 23, 2024 · 1 comment

Comments

@h555fv
Copy link

h555fv commented Dec 23, 2024

比如当前我有四个滤镜

我是应该选择优先原则还是按顺序执行

比如第一个
包头01,01 0a 00 23改成01 0a 00 37
包头02,01 0a 00 23改成01 0a 00 37
包头03,01 0a 00 23改成01 0a 00 37
包头04,01 0a 00 23改成01 0a 00 37

我一直不太理解这个按顺序还是优先原则,比如同时满足两个条件,是同时生效,还是只生效一个

@x-nas
Copy link
Owner

x-nas commented Dec 24, 2024

优先原则:按照滤镜列表从上到下的顺序,只要有一个滤镜匹配成功了,下面其它的滤镜就不执行了
按顺序执行:按照滤镜列表从上到下的顺序,执行所有匹配成功的滤镜

这两个选项的区别就是,是否需要针对一个封包执行多个滤镜规则,如果需要那就选按顺序,不需要那就选优先就可以了

PS:滤镜执行匹配是按照上一个滤镜修改后的数据进行匹配的,另外就算设置了按顺序执行,只要有 “拦截” “不修改” 类型的滤镜匹配成功了,后面的滤镜也不会再执行了,设置滤镜的时候需要注意!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants