Tun: Update TUN FD usage

This commit is contained in:
Fangliding
2026-06-23 01:37:36 +08:00
parent e7e289a35f
commit 038bf3123a
3 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -2,7 +2,9 @@
Creates a TUN interface; traffic sent to this interface will be processed by Xray. Currently, Windows, Linux, macOS, and FreeBSD are supported.
On Android, the TUN FD must be passed in from an external app, which uses VPN Service to redirect traffic. It cannot run standalone and only serves as a way for an app to feed traffic into Xray.
On Android and iOS, the TUN FD must be passed in from an external app via the `XRAY_TUN_FD` environment variable, which redirects traffic through the interface designated by the system. It cannot run standalone and only serves as a way for an app to feed traffic into Xray.
On Linux, this environment variable can optionally be used to pass in the TUN FD for certain lightweight or unprivileged implementations.
## InboundConfigurationObject