You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Proposal] Plugin System based on WASM (wazero) for Hot-Patching Protocols & Logic on Mobile #5406
Mobile clients (especially iOS) suffer from long App Store review cycles. When a critical bug is found in the core, or when GFW introduces new active probing that requires immediate protocol adjustments, users are left without connection for weeks until a new binary is reviewed and released.
Currently, Xray is monolithic. We cannot update internal logic without replacing the binary. On iOS, dynamic linking of native binaries is strictly forbidden by the OS sandbox.
I propose integrating a pure Go WebAssembly runtime, such as wazero, into Xray-core.
The goal is to define a set of interfaces (hooks) for:
Starlark/Lua scripting: Good for routing, but too slow for heavy packet processing/crypto hooks.
Go Plugins: Not supported on mobile architectures and incompatible with iOS security policies.
This architecture would make Xray significantly more resilient against censorship events, allowing the community to deploy countermeasures instantly to millions of mobile users.
Activity
Fangliding commentedon Dec 10, 2025
similar to #5367
0zd0 commentedon Dec 10, 2025
Yes, people can compile it on Android if they need to. But for iOS users, this is not an option.