From 8b00f94759cfb15252882b7d73578f1e36b8f4f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A1=E3=81=8B?= <88967758+chika0801@users.noreply.github.com> Date: Mon, 18 Dec 2023 13:21:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=A7=A3=E9=87=8A=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/config/outbounds/wireguard.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/config/outbounds/wireguard.md b/docs/config/outbounds/wireguard.md index 9138149..2955f56 100644 --- a/docs/config/outbounds/wireguard.md +++ b/docs/config/outbounds/wireguard.md @@ -26,7 +26,7 @@ "mtu": 1420, // optional, default 1420 "reserved": [1, 2, 3], "workers": 2, // optional, default runtime.NumCPU() - "domainStrategy": "ForceIPv6v4" // 需要 Xray-core v1.8.6 或更高版本 + "domainStrategy": "ForceIP" // 需要 Xray-core v1.8.6 或更高版本 } ``` @@ -61,7 +61,8 @@ Wireguard 服务器列表,其中每一项是一个服务器配置。 > `domainStrategy`: "ForceIPv6v4" | "ForceIPv6" | "ForceIPv4v6" | "ForceIPv4" | "ForceIP" 需要 Xray-core v1.8.6 或更高版本。
-当接收到的请求是域名时,使用[内置 DNS 服务器](./dns.md)解析获取 IP 后, 将此 IP 通过 wireguard 发出连接。 +留空时默认值是 `"ForceIP"`。
+当接收到的请求是域名,无论 `domainStrategy` 是否留空(或不写 `domainStrategy`),使用[内置 DNS 服务器](./dns.md)解析获取 IP(若配置中没写 DNS 部分,使用系统 DNS),将此 IP 通过 wireguard 发出连接。 ### Peers