Skip to content

Commit ae7c03c

Browse files
authored
Sniffing: domainsExcluded supports "geosite:" (#839)
XTLS/Xray-core#5927
1 parent 7999f7e commit ae7c03c

3 files changed

Lines changed: 6 additions & 12 deletions

File tree

docs/config/inbound.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,9 @@ Xray只会嗅探 `destOverride` 中协议的域名用作路由,如果只想进
119119

120120
如果关闭仅使用元数据推断目标地址,此时客户端必须先发送数据,代理服务器才会实际建立连接。此行为与需要服务器首先发起第一个消息的协议不兼容,如 SMTP 协议。
121121

122-
> `domainsExcluded`: [string] <Badge text="WIP" type="warning"/>
122+
> `domainsExcluded`: [string]
123123
124-
一个域名列表,如果流量探测结果在这个列表中时,将 **不会** 重置目标地址。
125-
126-
支持直接的域名(精确匹配),或 `regexp:` 开头后接正则表达式。
124+
一个域名列表,如果流量探测结果在这个列表中时,将 **不会** 重置目标地址。格式和 [路由配置](./routing.md#ruleobject) 中相同。
127125

128126
::: tip
129127
填写一些域名,可能解决iOS 推送通知,米家智能设备,某些游戏(彩虹六号)语音问题。<br>

docs/en/config/inbound.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,9 @@ When enabled, only the connection metadata will be used to sniff the destination
118118

119119
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.
120120

121-
> `domainsExcluded`: [string] <Badge text="WIP" type="warning"/>
121+
> `domainsExcluded`: [string]
122122
123-
A list of domains. If the result of traffic sniffing is in this list, the destination address will **not** be reset.
124-
125-
Supports direct domains (exact match), or strings starting with `regexp:` followed by a regular expression.
123+
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).
126124

127125
::: tip
128126
Filling in some domains may solve issues with iOS push notifications, Mijia smart devices, and voice chat in certain games (Rainbow Six).<br>

docs/ru/config/inbound.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,9 @@ Xray будет использовать доменные имена, обнар
133133
В этом случае клиенту необходимо сначала отправить данные, чтобы прокси-сервер установил соединение.
134134
Это поведение несовместимо с протоколами, которые требуют, чтобы сервер первым отправил сообщение, например, SMTP.
135135

136-
> `domainsExcluded`: [string] <Badge text="WIP" type="warning"/>
136+
> `domainsExcluded`: [string]
137137
138-
Список доменных имен, для которых **не будет** выполняться замена целевого адреса, если они обнаружены с помощью sniffing.
139-
140-
Поддерживаются прямые доменные имена (точное совпадение) или регулярные выражения, начинающиеся с `regexp:`.
138+
Список доменных имен. Если результат sniffing входит в этот список, целевой адрес **не будет** заменен. Формат доменов аналогичен [конфигурации маршрутизации](./routing.md#ruleobject).
141139

142140
::: tip
143141
Добавление некоторых доменных имен может решить проблемы с push-уведомлениями iOS, умными устройствами Mijia и голосовым чатом в некоторых играх (Rainbow Six Siege).

0 commit comments

Comments
 (0)