From 4d839037fed60efbac89b4780e5a5cfe93f15608 Mon Sep 17 00:00:00 2001 From: Nikita Klyshko Date: Sat, 28 Mar 2026 17:59:09 +0300 Subject: [PATCH] Routing: Fix missing subsection title in EN and CN locales (#833) --- docs/config/routing.md | 2 ++ docs/en/config/routing.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/config/routing.md b/docs/config/routing.md index f38f8944..2a964197 100644 --- a/docs/config/routing.md +++ b/docs/config/routing.md @@ -80,6 +80,8 @@ 当多个属性同时指定时,这些属性需要**同时**满足,才可以使当前规则生效。 ::: +> `domain`: \[string\] + - 纯字符串:同下面的子串,但可以省略前面的 `"keyword:"` 开头。 - 正则表达式:由 `"regexp:"` 开始,余下部分是一个正则表达式。当此正则表达式匹配目标域名时,该规则生效。例如 "regexp:\\\\.goo.\*\\\\.com\$" 匹配 "www.google.com"、"fonts.googleapis.com",但不匹配 "google.com"。大小写敏感。 - 子域名 (推荐):由 `"domain:"` 开始,余下部分是一个域名。当此域名是目标域名或其子域名时,该规则生效。例如 "domain:xray.com" 匹配 "www.xray.com" 与 "xray.com",但不匹配 "wxray.com"。 diff --git a/docs/en/config/routing.md b/docs/en/config/routing.md index 8a00d196..e13b0101 100644 --- a/docs/en/config/routing.md +++ b/docs/en/config/routing.md @@ -80,6 +80,8 @@ When a rule points to a load balancer, Xray will select an outbound through this When multiple attributes are specified simultaneously, these attributes must be satisfied **simultaneously** for the current rule to take effect. ::: +> `domain`: \[string\] + - **Pure string**: Same as substring below, but the `"keyword:"` prefix can be omitted. - **Regular expression**: Starts with `"regexp:"`, the rest is a regular expression. The rule takes effect when the regular expression matches the target domain. For example, "regexp:\\\\.goo.\*\\\\.com\$" matches "www.google.com" and "fonts.googleapis.com", but not "google.com". Case sensitive. - **Subdomain (Recommended)**: Starts with `"domain:"`, the rest is a domain name. The rule takes effect when the domain is the target domain or its subdomain. For example, "domain:xray.com" matches "www.xray.com" and "xray.com", but not "wxray.com".