From aab45268b5edf7ec699ef4fcaf74eb63e173ee35 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, 1 Jan 2024 14:31:33 +0800
Subject: [PATCH] =?UTF-8?q?Update=20transport.md=20=E4=B8=AD=E7=9A=84=20ne?=
=?UTF-8?q?twork=20domainStrategy?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
整理了`network`: "tcp" | "ws" | "h2" | "grpc" | "quic" | "kcp"
增加一个TIP
Sockopt中的domainStrategy,添加新的值
---
docs/config/transport.md | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/docs/config/transport.md b/docs/config/transport.md
index 40e31d8..167cb11 100644
--- a/docs/config/transport.md
+++ b/docs/config/transport.md
@@ -94,10 +94,14 @@
}
```
-> `network`: "tcp" | "kcp" | "ws" | "http" | "h2" | "quic" | "grpc" | "domainsocket"
+> `network`: "tcp" | "ws" | "h2" | "grpc" | "quic" | "kcp"
连接的数据流所使用的传输方式类型,默认值为 `"tcp"`
+::: tip
+"h2" 可以写成 "http","grpc" 可以写成 "gun","kcp" 可以写成 "mkcp"。
+:::
+
> `security`: "none" | "tls" | "reality"
是否启用传输层加密,支持的选项有
@@ -562,7 +566,13 @@ OCSP 装订更新,与证书热重载的时间间隔。 单位:秒。默认
设置中的`tproxy` 的值会被设为 `"redirect"`。
:::
-> `domainStrategy`: "AsIs" | "UseIP" | "UseIPv4" | "UseIPv6"
+> `domainStrategy`: "AsIs"
+> "UseIP" | "UseIPv6v4" | "UseIPv6" | "UseIPv4v6" | "UseIPv4"
+> "ForceIP" | "ForceIPv6v4" | "ForceIPv6" | "ForceIPv4v6" | "ForceIPv4"
+
+Xray-core v1.8.6 新增功能:
+`"UseIPv6v4"` | `"UseIPv4v6"`
+`"ForceIP"` | `"ForceIPv6v4"` | `"ForceIPv6"` | `"ForceIPv4v6"` | `"ForceIPv4"`
在之前的版本中,当 Xray 尝试使用域名建立系统连接时,域名的解析由系统完成,不受 Xray
控制。这导致了在 [非标准 Linux 环境中无法解析域名](https://github.com/v2ray/v2ray-core/issues/1909) 等问题。为此,Xray 1.3.1 为 Sockopt 引入了 Freedom
@@ -648,7 +658,7 @@ TCP 空闲时间阈值,单位为秒。当 TCP 连接空闲时间达到这个
> `tcpUserTimeout`: number
-单位为毫秒。
+单位为毫秒。详细介绍:https://github.com/grpc/proposal/blob/master/A18-tcp-user-timeout.md
> `tcpcongestion`: ""