Skip to content

Comments

TUN inbound: Add iOS support#5612

Merged
RPRX merged 1 commit intoXTLS:mainfrom
evozi:tun-ios
Jan 26, 2026
Merged

TUN inbound: Add iOS support#5612
RPRX merged 1 commit intoXTLS:mainfrom
evozi:tun-ios

Conversation

@evozi-team
Copy link
Contributor

Adds iOS support for the TUN inbound by accepting an existing file descriptor via the xray.tun.fd environment variable. This allows integration with iOS NetworkExtension, where the TUN fd is provided by the system rather than created by Xray.

@RPRX
Copy link
Member

RPRX commented Jan 26, 2026

@Owersun

@Owersun
Copy link
Collaborator

Owersun commented Jan 26, 2026

Yeah, this looks clean for me, I approve this can be merged, if iOS works that way.

@RPRX
Copy link
Member

RPRX commented Jan 26, 2026

我感觉这个不需要加环境变量吧万一需要多个 TUN inbound,改成配置项更好一些?

@RPRX
Copy link
Member

RPRX commented Jan 26, 2026

而且 Android 也是支持的但 README 里没写

@RPRX
Copy link
Member

RPRX commented Jan 26, 2026

我看了下 Android 的代码也是读这个环境变量那就环境变量吧,顺便在 README 补上 Android?

@RPRX RPRX merged commit c3af657 into XTLS:main Jan 26, 2026
nebulabox added a commit to nebulabox/Xray-core that referenced this pull request Jan 28, 2026
* commit 'f6a7e939231e5ec6b167628bf730dc70a3c36707': (90 commits)
  VMess inbound: Optimize replay filter (XTLS#5562)
  Bump github.com/pires/go-proxyproto from 0.9.1 to 0.9.2 (XTLS#5614)
  TUN inbound: Add iOS support (XTLS#5612)
  Geodat: Reduce peak memory usage (XTLS#5581)
  Bump github.com/pires/go-proxyproto from 0.9.0 to 0.9.1 (XTLS#5608)
  Hysteria transport: Support range & random for `interval` in `udphop` as well (XTLS#5603)
  TUN inbound: Enhance Darwin interface support (XTLS#5598)
  XUDP client: Initialize Global ID's BaseKey correctly (XTLS#5602)
  TUN inbound: Disable RACK/TLP recovery to fix connection stalls (XTLS#5600)
  v26.1.23
  common/errors/feature_errors.go: Add PrintNonRemovalDeprecatedFeatureWarning() (XTLS#5567)
  API: Add ListRule() for routing (XTLS#5569)
  Log config: More flexible `maskAddress` (XTLS#5570)
  Bump github.com/miekg/dns from 1.1.70 to 1.1.72 (XTLS#5590)
  Bump github.com/cloudflare/circl from 1.6.2 to 1.6.3 (XTLS#5589)
  Hysteria transport: Fix speedtest issue (XTLS#5587)
  README.md: Add fancyss to Asuswrt-Merlin Clients
  Router: Fix panic in ProcessNameMatcher when source IPs are empty (XTLS#5574)
  README.md: Update links for PassWall & PassWall 2 (XTLS#5572)
  Tests: Reduce RAM usage (XTLS#5577)
  ...

# Conflicts:
#	core/core.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants