mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-10-05 21:38:18 +03:00
为 1.8.7 的版本更新补充了一些文档的内容 (#459)
* Update wireguard.md * Update command.md * Update transport.md * Update routing.md * Update routing.md * Update transport.md
This commit is contained in:
+56
-2
@@ -89,7 +89,10 @@
|
||||
> `type`: "field"
|
||||
|
||||
目前只支持`"field"`这一个选项。
|
||||
Xray-core v1.8.7 前必填,v1.8.7 后可省略该行。
|
||||
|
||||
::: tip
|
||||
Xray-core v1.8.7 或更高版本可省略该行。
|
||||
:::
|
||||
|
||||
> `domain`: \[string\]
|
||||
|
||||
@@ -188,7 +191,10 @@ Xray-core v1.8.7 前必填,v1.8.7 后可省略该行。
|
||||
```json
|
||||
{
|
||||
"tag": "balancer",
|
||||
"selector": []
|
||||
"selector": [],
|
||||
"strategy": {
|
||||
"type":"roundRobin"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -202,6 +208,54 @@ Xray-core v1.8.7 前必填,v1.8.7 后可省略该行。
|
||||
|
||||
如果匹配到多个 outbound,负载均衡器目前会从中随机选出一个作为最终的 outbound。
|
||||
|
||||
> `strategy`: \[ string \]
|
||||
|
||||
`"type":"roundRobin"` 表示按顺序选择匹配到的 outbounds tag,若不写 `"strategy"` 字段表示随机选择匹配到的 outbounds tag。
|
||||
|
||||
配置示例:
|
||||
|
||||
```json
|
||||
"routing": {
|
||||
"rules": [
|
||||
{
|
||||
"inboundTag": [
|
||||
"in"
|
||||
],
|
||||
"balancerTag": "round"
|
||||
}
|
||||
],
|
||||
"balancers" : [
|
||||
{
|
||||
"selector": [
|
||||
"out"
|
||||
],
|
||||
"strategy": {
|
||||
"type":"roundRobin"
|
||||
},
|
||||
"tag": "round"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
"inbounds": [
|
||||
{
|
||||
// 入站配置
|
||||
"tag": "in"
|
||||
}
|
||||
]
|
||||
|
||||
"outbounds": [
|
||||
{
|
||||
// 出站配置
|
||||
"tag": "out1"
|
||||
},
|
||||
{
|
||||
// 出站配置
|
||||
"tag": "out2"
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
### 预定义域名列表
|
||||
|
||||
此列表预置于每一个 Xray 的安装包中,文件名为 `geosite.dat`。这个文件包含了一些常见的域名,使用方式:`geosite:filename`,如 `geosite:google` 表示对文件内符合 `google` 内包含的域名,进行路由筛选或 DNS 筛选。
|
||||
|
||||
Reference in New Issue
Block a user