Sniffing: Add ipsExcluded (supports IP, CIDR, "geoip:", "ext:")

This commit is contained in:
Meow
2026-04-14 13:42:33 +08:00
parent 6e9ed61e0d
commit bc4d1f7187
3 changed files with 15 additions and 0 deletions
+5
View File
@@ -97,6 +97,7 @@
"destOverride": ["http", "tls", "fakedns"],
"metadataOnly": false,
"domainsExcluded": [],
"ipsExcluded": [],
"routeOnly": false
}
```
@@ -137,6 +138,10 @@ Xray只会嗅探 `destOverride` 中协议的域名用作路由,如果只想进
```
> `ipsExcluded`: [string]
一个 IP 列表,如果目标地址在这个列表中,将 **不会** 重置目标地址。格式和 [路由配置](./routing.md#ruleobject) 中相同。
> `routeOnly`: true | false
将嗅探得到的域名仅用于路由,代理目标地址仍为 IP。默认值为 `false`。
+5
View File
@@ -96,6 +96,7 @@ Note: Newer browsers may use ECH to encrypt the Client Hello. In this case, Xray
"destOverride": ["http", "tls", "fakedns"],
"metadataOnly": false,
"domainsExcluded": [],
"ipsExcluded": [],
"routeOnly": false
}
```
@@ -135,6 +136,10 @@ If you need to troubleshoot the cause of certain problems, you can test by disab
]
```
> `ipsExcluded`: [string]
A list of IPs. If the destination address is in this list, the destination address will **not** be reset. The format is the same as in [Routing Configuration](./routing.md#ruleobject).
> `routeOnly`: true | false
Use the sniffed domain only for routing; the proxy destination address remains the IP. The default value is `false`.
+5
View File
@@ -107,6 +107,7 @@
"destOverride": ["http", "tls", "fakedns"],
"metadataOnly": false,
"domainsExcluded": [],
"ipsExcluded": [],
"routeOnly": false
}
```
@@ -152,6 +153,10 @@ Xray будет использовать доменные имена, обнар
```
> `ipsExcluded`: [string]
Список IP-адресов. Если целевой адрес находится в этом списке, он **не будет** заменён. Формат такой же, как и в [конфигурации маршрутизации](./routing.md#ruleobject).
> `routeOnly`: true | false
Использовать обнаруженные доменные имена только для маршрутизации.