Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.06 KB

README.md

File metadata and controls

46 lines (28 loc) · 1.06 KB

openwrt-xray

Xray for OpenWrt

Build Guide

  1. Use the latest OpenWrt SDK or with source code in master branch (requires golang modules support, commit openwrt/packages@7dc1f3e and later).

  2. 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.

UPX Compress

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

Uninstall

opkg remove xray-core