Skip to content

Commit

Permalink
Update yaml.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
布丁狗~ authored Oct 11, 2024
1 parent 68eaa3b commit 229bf24
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pages/docs/guide/override/yaml.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@ rules+:
- DOMAIN,baidu.com,DIRECT
```

若原本的键名就以 `+` 开头或结尾,为避免歧义请以 `<>` 包裹键名

如:

```yaml
nameserver-policy:
# 直接覆盖原先的+.google.cn项
<+.google.cn>:
- 8.8.8.8
# 插入到前面
+<+.google.cn>:
- 8.8.8.8
# 追加到后面
<+.google.cn>+:
- 8.8.8.8
```

## 覆写运行示例

<Tabs items={["覆写前内容", "要覆写的内容", "输出内容"]}>
Expand Down

0 comments on commit 229bf24

Please sign in to comment.