tindy2013 / subconverter

Utility to convert between various subscription format
GNU General Public License v3.0
13.19k stars 2.82k forks source link

[BUG] 不支持 Surge DOMAIN-SET 转 Clash 规则 #527

Open love4taylor opened 2 years ago

love4taylor commented 2 years ago

确认版本最新

检索issue

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

Niaber commented 2 years ago

一样,https://suc.mzgogogo.xyz/getruleset?type=6&url=aHR0cHM6Ly9yYXcuZ2l0aHVidXNlcmNvbnRlbnQuY29tL0RpdmluZUVuZ2luZS9Qcm9maWxlcy9tYXN0ZXIvQ2xhc2gvUnVsZVNldC9VbmJyZWFrLnlhbWw

Xm798 commented 1 year ago

一样,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

love4taylor commented 1 year ago

@Xm798 有 getruleset 需求的也不会去用自定义 config 吧,都只是需要这单条 ruleset。