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

[BUG] !!PROVIDER= 参数在custom_proxy_group=部分组合筛选条件时出现错误 #802

Open
2 tasks done
refined-fish opened this issue Dec 2, 2024 · 2 comments
Open
2 tasks done

Comments

@refined-fish
Copy link

refined-fish commented Dec 2, 2024

确认版本最新

  • 我已经确认在最新Action编译的版本中复现

检索issue

  • 我已经确认之前没有issue涉及此BUG

subconverter版本

0.9.0 sub.xeton.dev后端

转换过程

clash订阅转换为clash订阅

转换设置

外部配置链接:https%3A%2F%2Fraw.githubusercontent.com%2Frefined-fish%2Fclash_rule_fish%2Frefs%2Fheads%2Fmain%2FFish_Rule.ini
这是我自己编辑的一份配置文件,其中内容参照本项目wiki书写

复现步骤

在外部配置链接模板中定义了

custom_proxy_group=🖐️ 手动切换`select`!!PROVIDER=main,backup
custom_proxy_group=🇭🇰 香港节点`url-test`!!PROVIDER=main,backup!!(港|HK|hk|Hong Kong|HongKong|hongkong)`http://www.gstatic.com/generate_204`30,,200

点击获取配置文件

期望结果

转换为

  - name: 🖐️ 手动切换
    type: select
    use:
      - main
      - backup
  
  - name: 🇭🇰 香港节点
    type: url-test
    url: http://www.gstatic.com/generate_204
    interval: 30
    tolerance: 200
    use:
      - main
      - backup
    filter: "港|HK|hk|Hong Kong|HongKong|hongkong"

实际结果

  - name: 🇭🇰 香港节点
    type: url-test
    url: http://www.gstatic.com/generate_204
    interval: 30
    tolerance: 200
    use:
      - main
      - backup!!(港|HK|hk|Hong Kong|HongKong|hongkong)

错误信息

转换成功完成,但不符合预期
@refined-fish
Copy link
Author

想要利用mihomo内核的proxy-providers:功能实现节点和规则的内核更新,无需重载配置文件,减少服务中断
但是目前转换工具对mihomo的配置项转换支持有点少,proxy-providers:只能靠自己写clash_rule_base模板来手动添加,无法在转换时加入到url中动态修改
并且!!PROVIDER=参数对mihomo的proxy-groups引用proxy-providers支持似乎也不完全,只支持use,不支持随之的filter,如果不支持的话就无法使用节点筛选,感觉功能就残废了🥲,如果是我用法不对还请大佬指点迷津

@o88369
Copy link

o88369 commented Jan 5, 2025

我也在找这个,不知道怎么实现

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