1
0
mirror of https://github.com/nitezs/sub2sing-box.git synced 2024-12-24 11:54:41 -05:00

Merge pull request #3 from nitezs/dev

Dev
This commit is contained in:
Nite07 2024-03-12 18:03:10 +08:00 committed by GitHub
commit 2a6e427c4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 19 additions and 2 deletions

View File

@ -1,5 +1,9 @@
# sub2sing-box # sub2sing-box
## Cli Command
### convert
``` ```
Convert common proxy to sing-box proxy Convert common proxy to sing-box proxy
@ -16,6 +20,8 @@ Flags:
-t, --template string template file path -t, --template string template file path
``` ```
### server
``` ```
Run the server Run the server
@ -27,6 +33,17 @@ Flags:
-p, --port uint16 server port (default 8080) -p, --port uint16 server port (default 8080)
``` ```
#### api
##### GET /convert
- `data`: Base64 编码的 JSON 字符串,包含以下字段:
- `subscription`: []string
- `proxy`: []string
- `delete`: string
- `rename`: string
- `template`: string
## Template ## Template
Template 中使用 `<all-proxy-tags>` 指明节点插入位置,例如 Template 中使用 `<all-proxy-tags>` 指明节点插入位置,例如

View File

@ -183,7 +183,7 @@
"type": "selector", "type": "selector",
"tag": "Bilibili", "tag": "Bilibili",
"outbounds": ["节点选择", "<all-proxy-tags>", "direct"], "outbounds": ["节点选择", "<all-proxy-tags>", "direct"],
"default": "节点选择", "default": "direct",
"interrupt_exist_connections": true "interrupt_exist_connections": true
}, },
{ {
@ -197,7 +197,7 @@
"type": "selector", "type": "selector",
"tag": "Games(中国)", "tag": "Games(中国)",
"outbounds": ["节点选择", "<all-proxy-tags>", "direct"], "outbounds": ["节点选择", "<all-proxy-tags>", "direct"],
"default": "节点选择", "default": "direct",
"interrupt_exist_connections": true "interrupt_exist_connections": true
}, },
{ {