xmdhs / clash2sfa

将 Clash.Meta 格式的订阅链接转换为 sing-box 格式的订阅,用于 SFA
https://clash2sfa.xmdhs.com
MIT License
478 stars 91 forks source link

无法转换hysteria协议? #10

Closed ckaak closed 1 year ago

ckaak commented 1 year ago

报错: GetSub: convert2sing: clash2sing: hysteria: 不支持的类型

xmdhs commented 1 year ago

可以去除密码和服务器地址,把配置文件发上来,应该是部分字段没有做处理,hysteria 是支持的。

ckaak commented 1 year ago
- { name: test, type: hysteria, server: xxxx, port: 54211, ports: 20000-50000, auth_str: xxxxx-xxxxx-xxxx-xxxxx-xxxxxxx, disable_mtu_discovery: true, fast-open: true, protocol: udp, up: 20, down: 100, obfs: xxxxxxxxx, sni: xxxx.com }

- { name: test, type: hysteria, server: xxxx, port: 18301, auth_str:  xxxxx-xxxxx-xxxx-xxxxx-xxxxxxx, alpn: [h3], protocol: udp, up: 100, down: 200, fast-open: true, disable_mtu_discovery: 1, skip-cert-verify: true, ports: 6000-21000 }

这两种都不支持

xmdhs commented 1 year ago

sing-box 不支持范围端口,所以无法转换。

不过,之后我会加一个忽略无效节点的选项