mirror of
https://github.com/nitezs/sub2sing-box.git
synced 2024-12-23 22:14:41 -05:00
commit
2a6e427c4c
17
Readme.md
17
Readme.md
@ -1,5 +1,9 @@
|
||||
# sub2sing-box
|
||||
|
||||
## Cli Command
|
||||
|
||||
### convert
|
||||
|
||||
```
|
||||
Convert common proxy to sing-box proxy
|
||||
|
||||
@ -16,6 +20,8 @@ Flags:
|
||||
-t, --template string template file path
|
||||
```
|
||||
|
||||
### server
|
||||
|
||||
```
|
||||
Run the server
|
||||
|
||||
@ -27,6 +33,17 @@ Flags:
|
||||
-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 中使用 `<all-proxy-tags>` 指明节点插入位置,例如
|
||||
|
@ -183,7 +183,7 @@
|
||||
"type": "selector",
|
||||
"tag": "Bilibili",
|
||||
"outbounds": ["节点选择", "<all-proxy-tags>", "direct"],
|
||||
"default": "节点选择",
|
||||
"default": "direct",
|
||||
"interrupt_exist_connections": true
|
||||
},
|
||||
{
|
||||
@ -197,7 +197,7 @@
|
||||
"type": "selector",
|
||||
"tag": "Games(中国)",
|
||||
"outbounds": ["节点选择", "<all-proxy-tags>", "direct"],
|
||||
"default": "节点选择",
|
||||
"default": "direct",
|
||||
"interrupt_exist_connections": true
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user