asdlokj1qpi23 / subconverter

Utility to convert between various subscription format.Support hy2、hy and vless for singbox and clash meta
GNU General Public License v3.0
180 stars 32 forks source link

[Feature] 建议增加sing-box 1.8.0+的rule set支持 #3

Open johin528 opened 6 months ago

johin528 commented 6 months ago

verify

功能描述

更加轻量级,且不用依赖下载GEOIP数据库! 官方rule set说明: https://sing-box.sagernet.org/configuration/route/rule/

可能的解决方案

增加rule set支持同时兼容v1.8.0以下的sing-box版本,subconverter自带template功能,可以在tpl文件中指定get传参增加自定义功能,比如之前的Clash新参数和老版Clash的过渡:

{% if request.target == "clash" or request.target == "clashr" %}

port: {{ default(global.clash.http_port, "7890") }} socks-port: {{ default(global.clash.socks_port, "7891") }} allow-lan: {{ default(global.clash.allow_lan, "true") }} mode: Rule log-level: {{ default(global.clash.log_level, "info") }} external-controller: :9090 dns: enabled: true nameserver: {% if default(request.clash.doh, "false") == "true" %}

{% endif %}

可以轻松使用类if else语句自定义调用功能!

johin528 commented 6 months ago

老板直接开个TG群吧,以后项目完全独立,很多人支持你

asdlokj1qpi23 commented 6 months ago

When iOS is updated to 1.8, I will consider supporting this feature. Currently, I don't have much time available. I will reconsider the Telegram group later on.

johin528 commented 5 months ago

@asdlokj1qpi23 老板,ios版已经更新1.8.1内核了,期待您的更新