toperlock / sing-box-subscribe Goto Github PK
View Code? Open in Web Editor NEWThis project forked from gg4924/sing-box-subscribe
Home Page: https://sing-box-subscribe-doraemon.vercel.app
This project forked from gg4924/sing-box-subscribe
Home Page: https://sing-box-subscribe-doraemon.vercel.app
parsers/clash2base64.py里的vmess_info["sni"] = share_link.get('servername', '')应该是
if share_link.get('tls') and share_link['tls'] != False:
的结果吧,servername应是tls为ture时才有的选项;另外,vmess还能补充h2,http类型吗
RT
问题复现:
创建本地文件 local.txt
cat local.txt hysteria2://123@[xxxx:xxxx:xxxx:3::4c]:443/?insecure=1&sni=mydomain
编辑 providers.json
cat providers.json { "subscribes":[ { "url": "./local.txt", "tag": "机场1", "enabled": true, "emoji": 1, "prefix": "" }, { "url": "./local2.txt", "tag": "机场2", "enabled": false, "emoji": 0, "prefix": "❤️机场前缀 - " } ], "auto_set_outbounds_dns":{ "proxy": "", "direct": "" }, "save_config_path": "./config.json", "auto_backup": false, "exlude_protocol":"", "User-Agent":"" }
运行 main.py
python3 main.py /usr/lib/python3/dist-packages/paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated "class": algorithms.Blowfish, 1、config_template_groups_tun 2、config_template_no_groups_tun 3、config_template_tun 4、config_template_tun_2 输入序号,载入对应config模板(直接回车默认选第一个配置模板):1 处理./local.txt 发现 🌌 Google 出站下的节点数量为 0 ,会导致sing-box无法运行,请检查config模板是否正确。 Traceback (most recent call last): File "/home/kj54321/Downloads/sing-box-subscribe/main.py", line 420, in <module> final_config = combin_to_config(config,nodes) File "/home/kj54321/Downloads/sing-box-subscribe/main.py", line 340, in combin_to_config config_path = json.loads(temp_json_data).get("save_config_path", "config.json") File "/usr/lib/python3.10/json/__init__.py", line 339, in loads raise TypeError(f'the JSON object must be str, bytes or bytearray, ' TypeError: the JSON object must be str, bytes or bytearray, not NoneType
比如我这是一个混合格式。我想屏蔽掉里面的。vless。或者某个名字。
用配置文件或者传递url参数,跟其他订阅转换一样,可以通过客户端直接更新,而不需要手动更新了。
可以替代clash了。
部分订阅链接屏蔽了浏览器请求,会在请求订阅时返回特定网页导致无法获取订阅内容。修改请求UA为sing-box或Clash.Meta可以规避对浏览器请求的屏蔽,将请求伪装成由代理工具发出,正常获取订阅。
(packet-tunnel) error: create service: decode config: dns route rule: json: unknown field "rule_set"
{
"status": "error",
"message_CN": "执行子进程时出错,获取链接内容超时,请尝试本地运行脚本或者把订阅链接内容放到gist; 你的订阅链接可能需要使用 越南 ip才能打开,很抱歉vercel做不到,请你把订阅链接里的node内容保存到gist里再尝试解析它。或者请你在本地运行脚本;",
"message_VN": "Có lỗi khi thực hiện tiến trình con, vượt quá thời gian để lấy nội dung liên kết, vui lòng thử chạy kịch bản cục bộ hoặc đặt nội dung liên kết đăng ký vào Github Gist; Liên kết đăng ký của bạn có thể cần sử dụng IP Việt Nam để mở, xin lỗi Vercel không thể làm điều đó, vui lòng lưu nội dung nút trong liên kết đăng ký vào Github Gist trước khi cố gắng phân tích nó. Hoặc vui lòng chạy kịch bản cục bộ;",
"message_EN": "Fetching the link content is timing out, please try running the script locally or putting the subscription link content into Github Gist; Your subscription link may need to use Vietnam ip to open, sorry Vercel can not do that, please save the node content in the subscription link to Github Gist before trying to parse it. Or please run the script locally;"
}
vless://[email protected]:2086/?type=ws&encryption=none&host=argo3.zznwwh.top&path=%2Fvless%3Fed%3D2048#vercel0-argo3\nvless://[email protected]:2086/?type=ws&encryption=none&host=argo8.xznwwh.top&path=%2Fvless%3Fed%3D2048#vercel-argo5
日志:
+0800 2024-01-12 15:58:49 �[36mINFO�[0m router: updated default interface 以太网, index 15
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m router: updating rule-set geoip-facebook from URL: https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/facebook.srs
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m router: updating rule-set geoip-telegram from URL: https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/telegram.srs
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m router: updating rule-set geosite-category-ads-all from URL: https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/category-ads-all.srs
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m router: updating rule-set geoip-google from URL: https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geoip/google.srs
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m router: updating rule-set geosite-amazon from URL: https://testingcf.jsdelivr.net/gh/MetaCubeX/meta-rules-dat@sing/geo/geosite/amazon.srs
+0800 2024-01-12 15:58:49 �[36mINFO�[0m outbound/direct[direct]: outbound connection to testingcf.jsdelivr.net:443
+0800 2024-01-12 15:58:49 �[36mINFO�[0m outbound/direct[direct]: outbound connection to testingcf.jsdelivr.net:443
+0800 2024-01-12 15:58:49 �[36mINFO�[0m outbound/direct[direct]: outbound connection to testingcf.jsdelivr.net:443
+0800 2024-01-12 15:58:49 �[36mINFO�[0m outbound/direct[direct]: outbound connection to testingcf.jsdelivr.net:443
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: lookup domain testingcf.jsdelivr.net
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: lookup domain testingcf.jsdelivr.net
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: lookup domain testingcf.jsdelivr.net
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: match[0] domain=[ghproxy.com cdn.jsdelivr.net testingcf.jsdelivr.net] => localDns
+0800 2024-01-12 15:58:49 �[36mINFO�[0m outbound/direct[direct]: outbound connection to testingcf.jsdelivr.net:443
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: match[0] domain=[ghproxy.com cdn.jsdelivr.net testingcf.jsdelivr.net] => localDns
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: match[0] domain=[ghproxy.com cdn.jsdelivr.net testingcf.jsdelivr.net] => localDns
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: lookup domain testingcf.jsdelivr.net
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: lookup domain testingcf.jsdelivr.net
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m outbound/direct[direct]: outbound connection to 223.5.5.5:443
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m outbound/direct[direct]: outbound connection to 223.5.5.5:443
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m outbound/direct[direct]: outbound connection to 223.5.5.5:443
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: match[0] domain=[ghproxy.com cdn.jsdelivr.net testingcf.jsdelivr.net] => localDns
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: match[0] domain=[ghproxy.com cdn.jsdelivr.net testingcf.jsdelivr.net] => localDns
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m outbound/direct[direct]: outbound connection to 223.5.5.5:443
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m outbound/direct[direct]: outbound connection to 223.5.5.5:443
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net NOERROR 1
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net CNAME testingcf.jsdelivr.net. 1 IN CNAME testingcf.jsdelivr.net.cdn.cloudflare.net.
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.85.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net NOERROR 1
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net NOERROR 1
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net NOERROR 1
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.89.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net CNAME testingcf.jsdelivr.net. 1 IN CNAME testingcf.jsdelivr.net.cdn.cloudflare.net.
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net CNAME testingcf.jsdelivr.net. 1 IN CNAME testingcf.jsdelivr.net.cdn.cloudflare.net.
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net CNAME testingcf.jsdelivr.net. 1 IN CNAME testingcf.jsdelivr.net.cdn.cloudflare.net.
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.86.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.87.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.85.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.89.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.88.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.88.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.88.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.87.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net OPT OPT PSEUDOSECTION: EDNS: version 0 flags: MBZ: 0x0001, udp: 4096
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.86.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.86.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.85.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: lookup succeed for testingcf.jsdelivr.net: 104.16.86.20 104.16.87.20 104.16.85.20 104.16.89.20 104.16.88.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.87.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.87.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.89.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.85.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.89.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.88.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.86.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net OPT OPT PSEUDOSECTION: EDNS: version 0 flags: MBZ: 0x0001, udp: 4096
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net OPT OPT PSEUDOSECTION: EDNS: version 0 flags: MBZ: 0x0001, udp: 4096
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net OPT OPT PSEUDOSECTION: EDNS: version 0 flags: MBZ: 0x0001, udp: 4096
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: lookup succeed for testingcf.jsdelivr.net: 104.16.88.20 104.16.86.20 104.16.87.20 104.16.85.20 104.16.89.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: lookup succeed for testingcf.jsdelivr.net: 104.16.85.20 104.16.89.20 104.16.88.20 104.16.86.20 104.16.87.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: lookup succeed for testingcf.jsdelivr.net: 104.16.87.20 104.16.85.20 104.16.89.20 104.16.88.20 104.16.86.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net NOERROR 1
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net CNAME testingcf.jsdelivr.net. 1 IN CNAME testingcf.jsdelivr.net.cdn.cloudflare.net.
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.89.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.88.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.86.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.87.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net A testingcf.jsdelivr.net.cdn.cloudflare.net. 1 IN A 104.16.85.20
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: exchanged testingcf.jsdelivr.net OPT OPT PSEUDOSECTION: EDNS: version 0 flags: MBZ: 0x0001, udp: 4096
+0800 2024-01-12 15:58:49 �[37mDEBUG�[0m dns: lookup succeed for testingcf.jsdelivr.net: 104.16.89.20 104.16.88.20 104.16.86.20 104.16.87.20 104.16.85.20
+0800 2024-01-12 15:58:59 �[33mWARN�[0m router: initialize rule-set take too much time to finish!
现在有大部分moji都加不上,只有香港的能加上。
第一个是我自己的clash订阅链接,格式为yaml,可以转换成功,第二个是朋友给的hysteria2配置链接,格式为json,转换失败
输入序号,载入对应config模板(直接回车默认选第一个配置模板):2
选择: config_template_no_groups_tun.json
Mẫu cấu hình sử dụng: config_template_no_groups_tun.json
处理: https://*/config.yaml
Đang tải link đăng ký: https://*/config.yaml
处理: https://*/config.json
Đang tải link đăng ký: https://*/config.json
Traceback (most recent call last):
File "/Users/cubone/Documents/workSpace/github/sing-box-subscribe/main.py", line 484, in <module>
nodes = process_subscribes(providers["subscribes"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/cubone/Documents/workSpace/github/sing-box-subscribe/main.py", line 39, in process_subscribes
_nodes = get_nodes(subscribe['url'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/cubone/Documents/workSpace/github/sing-box-subscribe/main.py", line 137, in get_nodes
data = parse_content(content)
^^^^^^^^^^^^^^^^^^^^^^
File "/Users/cubone/Documents/workSpace/github/sing-box-subscribe/main.py", line 156, in parse_content
factory = get_parser(t)
^^^^^^^^^^^^^
File "/Users/cubone/Documents/workSpace/github/sing-box-subscribe/main.py", line 165, in get_parser
proto = tool.get_protocol(node)
^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/cubone/Documents/workSpace/github/sing-box-subscribe/tool.py", line 219, in get_protocol
m = re.search(r'^(.+?)://', s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.6/Frameworks/Python.framework/Versions/3.11/lib/python3.11/re/__init__.py", line 176, in search
return _compile(pattern, flags).search(string)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: cannot use a string pattern on a bytes-like object
相当于这个的反向工作
{
"subscribes":[
{
"url": "https://raw.githubusercontent.com/Alvin9999/pac2/master/clash.meta2/config.yaml",
"tag": "pac2",
"enabled": true,
"emoji": 1,
"prefix": "pac2",
"User-Agent": "v2rayng"
}
],
"auto_set_outbounds_dns":{
"proxy": "",
"direct": ""
},
"save_config_path": "./config.json",
"auto_backup": false,
"exclude_protocol":"ssr",
"config_template": "",
"Only-nodes": false
}
[
{
"tag": "pac2ip2",
"type": "shadowsocks",
"method": "2022-blake3-aes-128-gcm",
"password": "xxxxxxxxxxxxxxxxxx",
"multiplex": {
"enabled": true,
"protocol": "h2mux",
"max_connections": 8,
"min_streams": 16
},
"detour": "ip2_shadowtls"
},
{
"tag": "pac2ip2_shadowtls",
"type": "shadowtls",
"server": "62.210.103.0",
"server_port": 12299,
"version": 3,
"password": "xxxxxxxxxxx",
"tls": {
"enabled": true,
"server_name": "addons.mozilla.org",
"utls": {
"enabled": true,
"fingerprint": "chrome"
}
}
}
]
detour
应该是 pac2ip2_shadowtls
用vercel 生成的web parser链接比如 https://vercel.xxxxx.cloudns.org/config/https://gist.githubusercontent.com/xxxx/607f253bb7671ec96ae24b910e563903/raw/c88fc9a86dce358730b23abdbc08f0b0a8892da3/providers.json&file=2 在网页中可以正常打开所有节点 配置。但是把此链接导入sing-box官方安卓端作为订阅链接更新后,并未获得providers.json里的订阅节点,只有自己在config.template里手动添加的节点。
是不是并不支持这样的链接作为订阅链接在官方安卓使用?
我用的机场订阅链接,只有在支持clash.meta订阅的网络工具里才可以刷出hy等新协议节点,在其它工具只能刷出ss等老协议节点。您的这个工具好像也只能刷出老协议的节点。可否优化一下,让这类订阅链接刷出全部节点。
部署在vercel上的,突然用不了了。要是可以部署在docker上就好了
https://ghproxy.com/ 域名已经被GFW了,需要换用其它加速
目前可以使用的域名是 https://gh.ghproxy.com/ 上图中 https://mirror.ghproxy.com/ 域名链接质量我测试比较一般!
可以考虑换用自建git加速站,利用cloudflare workers搭建即可。
脚本转换后是这样子的
"plugin_opts": {
"mode": "http",
"host": "123456.com"
}
但实际应该是这样子
"plugin_opts": "obfs=http;obfs-host=123456.com"
不然Sing-Box会报错
与shadowsocks官方给的格式一致
https://github.com/shadowsocks/simple-obfs#usage
希望可以改一下👍
/&file=5 还在使用。https://1.1.1.1/dns-query 电线没问题,广电已经把他拉黑。
非常理解作者的感受,开源是一种美好的愿望,但在那些白嫖的人看来是理所应当。
给个建议,既然众口难调,不如只做好协议解析的事,其他的配置自行解决,不知道怎么配的自己去看sing-box文档,clash的事件给所有人一个警告,FQ代理软件还是需要有一定的使用门槛,做得太好用反而不是一件好事。
https://browserleaks.com/dns 测试下来,怎么都泄露,请问fakeipDNS模式 规则 如何正确配置.
期望能改进默认配置模板。
openwrt的passwall2 fakeDNS模式完全不泄露。
chatGPT这种...必须DNS不泄露才能保住账号...
如题,没有订阅地址的自建节点或内网节点,如何和订阅节点一同生成到配置文件中呢?
在使用后新加坡WeChat无法连接一直转圈,希望添加一个WeChat策略组
如何更新订阅链接
已经好了。 谢谢
{
"subscribes":[
{
"url": "https://5gtocdocao.com/api/v1/client/subscribe?token=xx",
"tag": "airport1_tag",
"enabled": true,
"emoji": 0,
"subgroup": "🙃 5gtocdocao", //Add a selector group node to contain all nodes currently subscribed
"prefix": "❤️node_name prefix - ",
"User-Agent":"clashmeta",
}
],
"auto_set_outbounds_dns":{
"proxy": "",
"direct": ""
},
"save_config_path": "./config.json",
"auto_backup": false,
"exclude_protocol":"ssr",
"config_template": "",
"Only-nodes": false
}
subscribes[*].subgroup
for providers.json
subscribes[*].subgroup == ""
, Pre-generated is disabled.subscribes[*].subgroup == "🙃 5gtocdocao"
, the following node will be generated:{
"type": "selector",
"tag": "🙃 5gtocdocao",
"outbounds": [
"❤️node_name prefix - node01",
"❤️node_name prefix - node02"
]
}
subscribes[*].subgroup
available under Only-nodes: false|true
可否在链接后增加新参数以自定义 providers.json
中的 exclude_protocol
?
就像 emoji
, tag
, prefix
, UA
, file
这些参数一样。
试了两天,怎么排放位置编码转换后都只能显示一个订阅中的节点。贴在浏览器打开也只有一个订阅的节点。使用你的订阅转换很久了,应该不是我操作错误的问题把。我用你的转换地址也试了一下,一样漏后面两个订阅节点。
首先感谢大佬开发的这个项目,让我完美的从clash过渡到singbox,大佬的这个项目,应该是目前最好用的转换工具了。但是我现在遇到一个问题,vmess节点转换后,测延迟没有数据,节点也不通,变成死节点。后来我发现了,是转换后是vmess节点配置里的"transport"下面多了3行多余的代码(分别是"path","headers","Host"),删除后,节点立刻正常了,可以测延迟,节点也通了。我把节点的clash订阅配置,和转换后的配置,还有修改后正常的配置上传上来,大佬你看看到底问题出在哪里,本人比较小白,不知道这样叙述,大佬是否明白。
clash订阅vmess配置: - { name: **-优化, type: vmess, server: yes.cnmjcn.net, port: 16616, uuid:XXXXXXXXXXXXXXXXXXXXXXXXXX, alterId: 0, cipher: auto, udp: true, network: ws }
转换后的配置(我用的工具是V2.2.8):
{
"tag": "🇹🇼 💍**-优化",
"type": "vmess",
"server": "yes.cnmjcn.net",
"server_port": 16616,
"uuid": "XXXXXXXXXXXXXXXXXXXXXXXXXX",
"security": "auto",
"alter_id": 0,
"packet_encoding": "xudp",
"transport": {
"type": "ws",
"path": "",
"headers": {
"Host": ""
}
}
},
修改后正常的配置:
{
"tag": "🇹🇼 💍**-优化",
"type": "vmess",
"server": "yes.cnmjcn.net",
"server_port": 16616,
"uuid": "XXXXXXXXXXXXXXXXXXXXXXXX",
"security": "auto",
"alter_id": 0,
"packet_encoding": "xudp",
"transport": {
"type": "ws"
}
},
今天更新了下,发现丢了两条订阅链接里的节点。重新转码了三个订阅,更新报错。 请问是不是更新了点啥??
没有在此订阅下找到节点,跳过
Không tìm thấy proxy trong link đăng ký này, bỏ qua
发现 🌌 Google 出站下的节点数量为 0 ,会导致sing-box无法运行,请检查config模板是否正确。
Sing-Box không chạy được vì không tìm thấy bất kỳ proxy nào trong outbound của 🌌 Google. Vui lòng kiểm tra xem mẫu cấu hình có đúng không!!
在使用之前下载的“sing-box-subscribe-main”是可以用的,今天看到有更新“sing-box-subscribe-no-flask-2.1.4”下载下来用是这个样子的,我尝试了运行“pip install requests paramiko scp chardet Flask PyYAML ruamel.yaml”,提示我要更新,我也输入了出现的更新的命令了
完美了!居然还增加了支持添加参数
能否每个订阅分开使用ua?
大佬加油,不要在意其他人的评论
希望不只是能传入url,还能通过例如file=1来选中服务器中第一个配置文件,简化参数。
今天更新发现无法跟新成功,就从新转换了一下。加入3条订阅,客户端update后始终只有前两条订阅的节点。
vmess协议机场。之前使用clash,现更换为sing-box后,出现udp不能正常使用的问题,例如,teamspeak语音服务器不能正常连接成功。
该机场clash格式的订阅中,某节点的格式为:
{name: "xxxxxxxx", server: xxxxxxxx.xxx, port: 12345, client-fingerprint: chrome, type: vmess, uuid: ********, alterId: 0, cipher: auto, tls: false, tfo: false, skip-cert-verify: true, udp: true}
经过转换后,对应的出站为:
{
"tag": "xxxxxxxx",
"type": "vmess",
"server": "xxxxxxxx.xxx",
"server_port": 12345,
"uuid": "********",
"security": "auto",
"alter_Id": 0,
"packet_encoding": "xudp",
"network": "tcp"
}
经过简单测试,"network": "tcp"
导致该节点的udp无法使用,删除该字段以后恢复正常,ts服务器能够成功连接。
根据sing-box文档,该字段只能指定tcp/udp,而不写则默认同时开启。
network
Enabled network
One of
tcp
udp
.Both is enabled by default.
而如上文所示的节点大量存在,经过转换以后全部被指定使用tcp,需要全部手动修改,对使用体验有较大影响,希望能够修复。感谢!
修正方法:
line 498 in main.py parse_json(): => return tool.readFile(value)
1.vercel虽然目前使用体验还不错,但是有几点不足,一个是自动同步经常会失效,各种各样的依赖错误失效之后就会发邮件提醒你也找不出来问题,只能重新部署。
第2个是vercel仍然是国外的小流量服务器,不如docker方便。 docker在镜像更新,反代域名,国内直连,代码稳定性等等层面上都会更好呀。
最后感谢大佬做出这么棒的项目,简洁清晰易懂。有效。谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.