Sniffing: domainsExcluded supports "geosite:" (#839)

XTLS/Xray-core#5927
This commit is contained in:
Meow
2026-04-14 13:24:39 +08:00
parent 71dda44a9b
commit 6e9ed61e0d
3 changed files with 6 additions and 25 deletions
+2 -8
View File
@@ -119,11 +119,9 @@ Xray只会嗅探 `destOverride` 中协议的域名用作路由,如果只想进
如果关闭仅使用元数据推断目标地址,此时客户端必须先发送数据,代理服务器才会实际建立连接。此行为与需要服务器首先发起第一个消息的协议不兼容,如 SMTP 协议。
> `domainsExcluded`: [string] <Badge text="WIP" type="warning"/>
> `domainsExcluded`: [string]
一个域名列表,如果流量探测结果在这个列表中时,将 **不会** 重置目标地址。
支持直接的域名(精确匹配),或 `regexp:` 开头后接正则表达式。
一个域名列表,如果流量探测结果在这个列表中时,将 **不会** 重置目标地址。格式和 [路由配置](./routing.md#ruleobject) 中相同。
::: tip
填写一些域名,可能解决iOS 推送通知,米家智能设备,某些游戏(彩虹六号)语音问题。<br>
@@ -139,10 +137,6 @@ Xray只会嗅探 `destOverride` 中协议的域名用作路由,如果只想进
```
::: warning
目前,`domainsExcluded` 不支持类似路由中的域名匹配方式。此选项未来可能会改变,不保证跨版本兼容。
:::
> `routeOnly`: true | false
将嗅探得到的域名仅用于路由,代理目标地址仍为 IP。默认值为 `false`。
+2 -8
View File
@@ -118,11 +118,9 @@ When enabled, only the connection metadata will be used to sniff the destination
If disabled (using more than just metadata to infer the destination address), the client must send data first before the proxy server actually establishes a connection. This behavior is incompatible with protocols where the server must initiate the first message, such as the SMTP protocol.
> `domainsExcluded`: [string] <Badge text="WIP" type="warning"/>
> `domainsExcluded`: [string]
A list of domains. If the result of traffic sniffing is in this list, the destination address will **not** be reset.
Supports direct domains (exact match), or strings starting with `regexp:` followed by a regular expression.
A list of domains. If the result of traffic sniffing is in this list, the destination address will **not** be reset. The domain format is the same as in [Routing Configuration](./routing.md#ruleobject).
::: tip
Filling in some domains may solve issues with iOS push notifications, Mijia smart devices, and voice chat in certain games (Rainbow Six).<br>
@@ -137,10 +135,6 @@ If you need to troubleshoot the cause of certain problems, you can test by disab
]
```
::: warning
Currently, `domainsExcluded` does not support the domain matching methods used in routing. This option may change in the future and cross-version compatibility is not guaranteed.
:::
> `routeOnly`: true | false
Use the sniffed domain only for routing; the proxy destination address remains the IP. The default value is `false`.
+2 -9
View File
@@ -133,11 +133,9 @@ Xray будет использовать доменные имена, обнар
В этом случае клиенту необходимо сначала отправить данные, чтобы прокси-сервер установил соединение.
Это поведение несовместимо с протоколами, которые требуют, чтобы сервер первым отправил сообщение, например, SMTP.
> `domainsExcluded`: [string] <Badge text="WIP" type="warning"/>
> `domainsExcluded`: [string]
Список доменных имен, для которых **не будет** выполняться замена целевого адреса, если они обнаружены с помощью sniffing.
Поддерживаются прямые доменные имена (точное совпадение) или регулярные выражения, начинающиеся с `regexp:`.
Список доменных имен. Если результат sniffing входит в этот список, целевой адрес **не будет** заменен. Формат доменов аналогичен [конфигурации маршрутизации](./routing.md#ruleobject).
::: tip
Добавление некоторых доменных имен может решить проблемы с push-уведомлениями iOS, умными устройствами Mijia и голосовым чатом в некоторых играх (Rainbow Six Siege).
@@ -154,11 +152,6 @@ Xray будет использовать доменные имена, обнар
```
::: warning
В настоящее время `domainsExcluded` не поддерживает способы сопоставления доменов, аналогичные тем, что используются в маршрутизации.
Этот параметр может быть изменен в будущем, совместимость между версиями не гарантируется.
:::
> `routeOnly`: true | false
Использовать обнаруженные доменные имена только для маршрутизации.