From d95dbe2da4a546b4559af41f2e9c2cb79c1b0eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A1=E3=81=8B?= <88967758+chika0801@users.noreply.github.com> Date: Wed, 3 Jan 2024 22:20:32 +0800 Subject: [PATCH] Additions to domainExcluded (#446) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Additions to domainExcluded 补充内容来自下面链接: https://github.com/XTLS/Xray-core/issues/250#issuecomment-779667344 https://github.com/XTLS/Xray-core/discussions/364#discussion-3268358 https://github.com/xiaorouji/openwrt-passwall2/pull/8#issue-1167437739 https://github.com/xiaorouji/openwrt-passwall/pull/2885 * 更新内容 --- docs/config/inbound.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/config/inbound.md b/docs/config/inbound.md index d6c3caf..67243e4 100644 --- a/docs/config/inbound.md +++ b/docs/config/inbound.md @@ -111,10 +111,14 @@ 其中 `["fakedns+others"]` 相当于 `["http", "tls", "quic", "fakedns"]`,当 IP 地址处于 FakeIP 区间内但没有命中域名记录时会使用 `http`、`tls` 和 `quic` 进行匹配。此项仅在 `metadataOnly` 为 `false` 时有效。 -::: tip +::: tip 1 Xray只会嗅探 `destOverride` 中协议的域名用作路由,如果只想进行嗅探用作路由而不想重置目标地址,请在这里添加对应的协议并启用 `routeOnly` 。 ::: +::: tip 2 +当使用 Tor 浏览器,设置使用代理访问互联网(HTTP / SOCKS),地址为本地 IP 127.0.0.1,需要关闭 `"sniffing"` 才能正常使用。 +::: + > `metadataOnly`: true | false 当启用时,将仅使用连接的元数据嗅探目标地址。此时,除 `fakedns` 以外的 sniffer 将不能激活(包括 `fakedns+others`)。 @@ -125,6 +129,20 @@ Xray只会嗅探 `destOverride` 中协议的域名用作路由,如果只想进 一个域名列表,如果流量探测结果在这个列表中时,将 **不会** 重置目标地址。 +::: tip +填写一些域名,可能解决iOS 推送通知,米家智能设备,某些游戏(彩虹六号)语音问题。
+如果需要排查某些问题的原因,可以通过关闭 `"sniffing"` 或者启用 `"routeOnly"` 来测试。 +::: + +```json +"domainsExcluded": [ + "courier.push.apple.com", // iOS 推送通知 + "Mijia Cloud", // 米家智能设备 + "dlg.io.mi.com" +] + +``` + ::: warning 目前,`domainsExcluded` 不支持类似路由中的域名匹配方式。此选项未来可能会改变,不保证跨版本兼容。 :::