Xray for OpenWrt
-
Use the latest OpenWrt SDK or with source code in master branch (requires golang modules support, commit openwrt/packages@7dc1f3e and later).
-
Enter root directory of SDK, then download the Makefile:
git clone -b master --depth 1 https://github.com/MoZhonghua/openwrt-xray package/openwrt-xray
For Chinese users,
export GOPROXY=https://goproxy.io
before build.
Start build:
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
Network ---> Project X ---> <*> xray-core
make package/openwrt-xray/{clean,compile} V=s
find ./bin -name "*.ipk" | grep xray
- You can custom the features in
XRAY Configuration
option.
If you want to build with UPX compress, the UPX package is required.
git clone -b master --depth 1 https://github.com/kuoruan/openwrt-upx.git package/openwrt-upx
opkg remove xray-core