yiguodev:OneXray 下一版加入局域网代理共享,单个监听同时支持 HTTP 与 SOCKS5
在「希望有旁路由功能」请求(#208)的回复中,yiguodev 说明局域网代理共享已在下一版实现:可在「高级 → Xray → Xray 配置」中启用,默认端口 11024,可自行修改;单个监听同时支持 HTTP 与 SOCKS5,包含 SOCKS5 UDP 转发。共享在 VPN 运行时生效并使用其当前路由配置,连接状态下修改共享设置会提示重启 VPN。其他设备必须显式配置该代理,这不是透明网关或路由器模式。监听绑定 0.0.0.0 且无认证,因此只应在可信网络启用。HTTP、HTTP CONNECT、SOCKS5、UDP 转发及重启/取消行为已在 Android 模拟器验证;其他平台仍需真机验证,Apple Network Extension 的宿主限制可能影响可用性。该 issue 已以「已实现」关闭。
作者原文@yiguodevThanks for the suggestion. LAN proxy sharing has been implemented for the next release.
You can enable it under Advanced → Xray → Xray configuration. The default port is 11024 and can be changed. A single listener supports HTTP and SOCKS5, including SOCKS5 UDP forwarding. Sharing works while the VPN is running and uses its current routing configuration. Changing the sharing settings while connected prompts you to restart the VPN.
Other devices must explicitly configure this proxy; this is not a transparent gateway or router mode. The listener binds to 0.0.0.0 without authentication, so enable it only on trusted networks.
HTTP, HTTP CONNECT, SOCKS5, UDP forwarding, and restart/cancel behavior were verified on the Android emulator. Other platforms still require device-level verification; Apple Network Extension hosting restrictions may limit availability.
Closing this as implemented.