Initial zh-CN document translation: DNS

This commit is contained in:
世界
2022-08-24 16:23:21 +08:00
parent a878256367
commit 03f457f3d0
16 changed files with 585 additions and 19 deletions

View File

@@ -0,0 +1,59 @@
# 路由
### 结构
```json
{
"route": {
"geoip": {},
"geosite": {},
"rules": [],
"final": "",
"auto_detect_interface": false,
"default_interface": "en0",
"default_mark": 233
}
}
```
### Fields
| 键 | 格式 |
|-----------|----------------------|
| `geoip` | [GeoIP](./geoip) |
| `geosite` | [GeoSite](./geosite) |
| `rules` | 一组 [路由规则](./rule) |
#### final
默认出站标签。如果未空,将使用第一个可用于对应协议的出站。
#### auto_detect_interface
!!! error ""
仅支持 Linux, Windows, 和 macOS.
默认将出站连接绑定到默认网卡,以防止在 Tun 下出现路由环路。
如果设置了 `outbound.bind_interface` 设置,则不生效。
#### default_interface
!!! error ""
仅支持 Linux, Windows, 和 macOS.
默认将出站连接绑定到指定网卡,以防止在 Tun 下出现路由环路。
如果设置了 `auto_detect_interface` 设置,则不生效。
#### default_mark
!!! error ""
仅支持 Linux.
默认为出站连接设置路由标记。
如果设置了 `outbound.routing_mark` 设置,则不生效。