From 033dbf7dfcce4bdbfdf0c18f664e07b4edbfe5c8 Mon Sep 17 00:00:00 2001 From: mimimi <22430379+Meowzz95@users.noreply.github.com> Date: Wed, 9 Aug 2023 21:12:55 +0800 Subject: [PATCH] Doc: update tun-device.md (#2872) --- docs/premium/tun-device.md | 2 +- docs/zh_CN/premium/tun-device.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/premium/tun-device.md b/docs/premium/tun-device.md index 49a8915..58c77dc 100644 --- a/docs/premium/tun-device.md +++ b/docs/premium/tun-device.md @@ -10,7 +10,7 @@ The Premium core has out-of-the-box support of TUN device. Being a Network layer One of the biggest advantage of using Clash TUN is the built-in support of the *automagic* management of the route table, routing rules and nftable. You can enable it with the options `tun.auto-route` and `tun.auto-redir`. It's a drop-in replacement of the ancient configuration option `redir-port` (TCP) for the sake of easier configuration and better stability. ::: tip -`tun.auto-route` and `tun.auto-redir` are only available on macOS, Windows, Linux and Android, and only receives IPv4 traffic. +`tun.auto-route` is only available on macOS, Windows, Linux and Android, and only receives IPv4 traffic. `tun.auto-redir` is only available on Linux(needs netlink support in the kernel). ::: There are two options of TCP/IP stack available: `system` or `gvisor`. In order to get the best performance available, we recommend that you always use `system` stack unless you have a specific reason or compatibility issue to use `gvisor`. If that's the case, do not hesitate to [submit an issue](https://github.com/Dreamacro/clash/issues/new/choose). diff --git a/docs/zh_CN/premium/tun-device.md b/docs/zh_CN/premium/tun-device.md index 8bd2cde..803fc66 100644 --- a/docs/zh_CN/premium/tun-device.md +++ b/docs/zh_CN/premium/tun-device.md @@ -10,7 +10,7 @@ Premium 内核支持 TUN 设备. 作为网络层设备, 它可以用来处理 TC 使用 Clash TUN 的最大优势之一是内置支持对操作系统路由表、路由规则和 nftable 的自动管理. 您可以通过选项 `tun.auto-route` 和 `tun.auto-redir` 来启用它. 这个功能替换了古老的配置选项 `redir-port`(TCP), 以方便配置和提高稳定性. ::: tip -`tun.auto-route` 和 `tun.auto-redir` 仅在 macOS、Windows、Linux 和 Android 上可用, 并且仅接收 IPv4 流量. +`tun.auto-route` 仅在 macOS、Windows、Linux 和 Android 上可用, 并且仅接收 IPv4 流量。`tun.auto-redir` 仅在 Linux 上可用(需要内核 netlink 支持)。 ::: Clash 有两种可供选择的 TCP/IP 协议栈: `system` or `gvisor`. 为了获得最好的性能, 我们建议您优先使用 `system` 栈, 只有遇到兼容性问题时才使用 `gvisor`. 并且如果你遇到这样的情况, 请立即[提交 Issue](https://github.com/Dreamacro/clash/issues/new/choose).