Add multiple tags support to rule-sets
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
!!! quote "Changes in sing-box 1.14.0"
|
||||
|
||||
:material-plus: [http_client](#http_client)
|
||||
:material-delete-clock: [download_detour](#download_detour)
|
||||
:material-delete-clock: [download_detour](#download_detour)
|
||||
:material-alert: [tag](#tag)
|
||||
|
||||
!!! quote "Changes in sing-box 1.10.0"
|
||||
|
||||
@@ -30,7 +31,7 @@
|
||||
```json
|
||||
{
|
||||
"type": "local",
|
||||
"tag": "",
|
||||
"tag": "", // or []
|
||||
"format": "source", // or binary
|
||||
"path": ""
|
||||
}
|
||||
@@ -45,7 +46,7 @@
|
||||
```json
|
||||
{
|
||||
"type": "remote",
|
||||
"tag": "",
|
||||
"tag": "", // or []
|
||||
"format": "source", // or binary
|
||||
"url": "",
|
||||
"http_client": "", // or {}
|
||||
@@ -71,6 +72,15 @@ Type of rule-set, `local` or `remote`.
|
||||
|
||||
Tag of rule-set.
|
||||
|
||||
!!! question "Since sing-box 1.14.0"
|
||||
|
||||
`tag` also accepts a list of tags to define multiple rule-sets sharing other options at once.
|
||||
|
||||
The `{tag}` placeholder in `path` or `url` is replaced by each tag,
|
||||
and is required when multiple tags are set.
|
||||
|
||||
Multiple tags conflict with `type: inline`.
|
||||
|
||||
### Inline Fields
|
||||
|
||||
!!! question "Since sing-box 1.10.0"
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
!!! quote "sing-box 1.14.0 中的更改"
|
||||
|
||||
:material-plus: [http_client](#http_client)
|
||||
:material-delete-clock: [download_detour](#download_detour)
|
||||
:material-delete-clock: [download_detour](#download_detour)
|
||||
:material-alert: [tag](#tag)
|
||||
|
||||
!!! quote "sing-box 1.10.0 中的更改"
|
||||
|
||||
@@ -30,7 +31,7 @@
|
||||
```json
|
||||
{
|
||||
"type": "local",
|
||||
"tag": "",
|
||||
"tag": "", // 或 []
|
||||
"format": "source", // or binary
|
||||
"path": ""
|
||||
}
|
||||
@@ -45,7 +46,7 @@
|
||||
```json
|
||||
{
|
||||
"type": "remote",
|
||||
"tag": "",
|
||||
"tag": "", // 或 []
|
||||
"format": "source", // or binary
|
||||
"url": "",
|
||||
"http_client": "", // 或 {}
|
||||
@@ -71,6 +72,14 @@
|
||||
|
||||
规则集的标签。
|
||||
|
||||
!!! question "自 sing-box 1.14.0 起"
|
||||
|
||||
`tag` 也接受一组标签,用于一次定义多个共享其他选项的规则集。
|
||||
|
||||
`path` 或 `url` 中的 `{tag}` 占位符将被替换为每个标签,设置多个标签时必填。
|
||||
|
||||
多个标签与 `type: inline` 冲突。
|
||||
|
||||
### 内联字段
|
||||
|
||||
!!! question "自 sing-box 1.10.0 起"
|
||||
|
||||
Reference in New Issue
Block a user