subconverter
subconverter copied to clipboard
[BUG] 不支持 Surge DOMAIN-SET 转 Clash 规则
确认版本最新
- [X] 我已经确认在最新Action编译的版本中复现
检索issue
- [X] 我已经确认之前没有issue涉及此BUG
subconverter版本
subconverter v0.7.2-f6e77b7 backend
转换过程
Surge DOMAIN-SET 规则转换为 Clash classical ruleset 或 Clash domain rule-provider
转换设置
默认
复现步骤
~
❯ curl https://localhost/getruleset?type=6&url=aHR0cHM6Ly9ydWxlc2V0LnNray5tb2UvTGlzdC9kb21haW5zZXQvY2RuLmNvbmY=
payload:
- 'DOMAIN,--placeholder--'
期望结果
正常生成 Clash 的 yaml
实际结果
--placeholder--
错误信息
No response
一样,https://suc.mzgogogo.xyz/getruleset?type=6&url=aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0RpdmluZUVuZ2luZS9Qcm9maWxlcy9tYXN0ZXIvQ2xhc2gvUnVsZVNldC9VbmJyZWFrLnlhbWw
一样,https://suc.mzgogogo.xyz/getruleset?type=6&url=aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0RpdmluZUVuZ2luZS9Qcm9maWxlcy9tYXN0ZXIvQ2xhc2gvUnVsZVNldC9VbmJyZWFrLnlhbWw
还没有修复这个问题,但是 Subconverter 可以直接使用 surge, quanx, clash-domain, clash-ipcidr, clash-classic
指定 type,文档的 [ruleset] 部分 有说明。
例如:
ruleset=DIRECT,clash-ipcidr:https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Clash/ChinaIPsBGP/ChinaIPsBGP_IP.yaml
ruleset=BiliBili,clash-classic:https://raw.githubusercontent.com/dler-io/Rules/main/Clash/Provider/Media/Bilibili.yaml
ruleset=AdBlock,clash-domain:https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/test/rule/Clash/Advertising/Advertising_Domain.yaml
Ref https://github.com/blackmatrix7/ios_rule_script/issues/548#issuecomment-1132350808
@Xm798 有 getruleset 需求的也不会去用自定义 config 吧,都只是需要这单条 ruleset。