mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2025-01-20 09:41:41 +03:00
Routing: Add ruleTag
This commit is contained in:
parent
07d9855af2
commit
71e359548f
@ -71,7 +71,8 @@
|
||||
"protocol": ["http", "tls", "bittorrent"],
|
||||
"attrs": { ":method": "GET" },
|
||||
"outboundTag": "direct",
|
||||
"balancerTag": "balancer"
|
||||
"balancerTag": "balancer",
|
||||
"ruleTag": "rule name"
|
||||
}
|
||||
```
|
||||
|
||||
@ -186,6 +187,12 @@ Xray-core v1.8.7 或更高版本可省略该行。
|
||||
`balancerTag` 和 `outboundTag` 须二选一。当同时指定时,`outboundTag` 生效。
|
||||
:::
|
||||
|
||||
> `ruleTag`: string
|
||||
|
||||
可选,无实际作用,仅用于标识这条规则的名字
|
||||
|
||||
如果设置,则命中该条规则时会在 Info 等级输出相关信息,用于调试路由具体命中了哪条规则。
|
||||
|
||||
### BalancerObject
|
||||
|
||||
负载均衡器配置。当一个负载均衡器生效时,它会从指定的 outbound 中,按配置选出一个最合适的 outbound,进行流量转发。
|
||||
|
Loading…
x
Reference in New Issue
Block a user