From 71e359548ffdc1ece12feee093e1ee4c8d452d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E6=89=87=E6=BB=91=E7=BF=94=E7=BF=BC?= Date: Sat, 14 Sep 2024 01:16:01 +0800 Subject: [PATCH] Routing: Add ruleTag --- docs/config/routing.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/config/routing.md b/docs/config/routing.md index a7889066b..021673b85 100644 --- a/docs/config/routing.md +++ b/docs/config/routing.md @@ -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,进行流量转发。