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

更新成功后删除旧规则存在问题 #3

Closed
blueberry-pie-11 opened this issue Jan 30, 2024 · 2 comments
Closed

更新成功后删除旧规则存在问题 #3

blueberry-pie-11 opened this issue Jan 30, 2024 · 2 comments

Comments

@blueberry-pie-11
Copy link

例如自定义运营商,如果只设置一个中国列表没问题。
但同时设置中国和Google两个运营商列表时,一旦其中一个更新成功但另一个失败,最后会导致所有旧规则列表都被删除。
建议备注使用 “IKUAI_BYPASS-中国”、“IKUAI_BYPASS-Google”这种形式区分是否删除旧列表

@joyanhui
Copy link
Owner

joyanhui commented Feb 1, 2024

感谢建议,因为没遇到过单条记录更新失败的情况,所以忽视了这个可能存在的问题。

后面会考虑在配置文件中单独配置备注名称的方式来处理。

@joyanhui
Copy link
Owner

joyanhui commented Feb 1, 2024

修改了一下 备注名称为 IKUAI_BYPASS_<tag> 同时配置文件内增加了一条配置参数。如果tag为空则默认使用 运营商名称name 或者wan口名称interface

-r clean 默认增加一个辅助参数 -tag 默认为 cleanAll,也可以删除指定备注名称(或者后缀)的规则

同时,新版使用之前,需要运行一次

./ikuai-bypass -c /路径/config.yml -r clean -tag cleanAll

目前初步测试了一下没问题,稍后我会推送一个新版上来。

joyanhui added a commit that referenced this issue Feb 1, 2024
- 2023-02-1 某一分组规则更新失败导致相关的旧规则被删除的bug  [#3](#3)
- 2023-02-1 清理模式增加附加参数`-tag` 可以清理全部备注名包含`IKUAI_BYPASS`的分流规则,或者指定备注名全程或者后缀名的分流规则
- 旧版记录参考 commit信息
@joyanhui joyanhui closed this as completed Feb 7, 2024
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