Legal documents
Open source
Luch's network engine is based on Xray-core and REALITY (Mozilla Public License 2.0), which we have modified. Under MPL-2.0, the source code of the modified files is published on this page.
1. Xray-core
- Repository
- github.com/XTLS/Xray-core
- Version
- 26.7.28
- Commit
5ca6f4b7d4dc20a881d4330e498892697627ec0c- Go module
github.com/xtls/xray-core v1.260327.1-0.20260728075948-5ca6f4b7d4dc- License
- Mozilla Public License 2.0
The changes are applied in this order: file replacement, path removal, then the numbered patches.
| File | Purpose and SHA-256 |
|---|---|
proxy/socks/temp_udp_listen.go |
Whole-file replacement of
|
removed.list |
List of removed paths: packages that depend on GPL-licensed modules (Shadowsocks 2022).
|
0001-amneziawg-3.1.patch |
AmneziaWG 3.1 support.
|
0002-awg-review-fixes.patch |
AmneziaWG configuration and error-handling fixes.
|
0003-awg-device-lifecycle.patch |
AmneziaWG device creation and shutdown.
|
0004-transport-pool-lifecycle.patch |
Transport connection pool lifecycle.
|
0005-xhttp-hysteria-client-fixes.patch |
XHTTP and Hysteria client fixes.
|
0006-drop-gpl-modules.patch |
Removes the remaining Shadowsocks 2022 references and GPL/LGPL dependencies from
|
2. REALITY
- Repository
- github.com/XTLS/REALITY
- Commit
9234c772ba8f181f31c3e81dc2b4177322e5a9a9- Go module
github.com/xtls/reality v0.0.0-20260322125925-9234c772ba8f- License
- Mozilla Public License 2.0
| File | Purpose and SHA-256 |
|---|---|
0001-drop-juju-ratelimit.patch |
Replaces the
|
Checksums of all files in one list: SHA256SUMS.
3. Reproducing
The commands below download the files keeping their paths, verify the checksums and apply the changes to the sources at the listed commits:
mkdir luch-src && cd luch-src
B=https://luchvpn.com/source/mpl
curl -fsSL -o SHA256SUMS "$B/SHA256SUMS"
for f in $(awk '{print $2}' SHA256SUMS); do curl -fsSL --create-dirs -o "$f" "$B/$f"; done
shasum -a 256 -c SHA256SUMS
git clone https://github.com/XTLS/Xray-core upstream-xray
git -C upstream-xray checkout 5ca6f4b7d4dc20a881d4330e498892697627ec0c
cp xray-core/proxy/socks/temp_udp_listen.go upstream-xray/proxy/socks/
grep -v '^#' xray-core/removed.list | grep . | (cd upstream-xray && xargs rm -rf)
for p in xray-core/0*.patch; do patch -p1 --forward -d upstream-xray < "$p"; done
git clone https://github.com/XTLS/REALITY upstream-reality
git -C upstream-reality checkout 9234c772ba8f181f31c3e81dc2b4177322e5a9a9
patch -p1 --forward -d upstream-reality < reality/0001-drop-juju-ratelimit.patch
The patches were made against the Go module sources of the listed versions, that is, the repository contents at the listed commits.
4. Other components
| Component | License |
|---|---|
| Xray-core 26.7.28 (network engine) | MPL-2.0, modified (section 1) |
| REALITY (network engine) | MPL-2.0, modified (section 2) |
| The Go standard library and the Go modules used by the engine | BSD-3-Clause, MIT, Apache-2.0 and similar permissive licenses |
| hev-socks5-tunnel 2.19.3, hev-socks5-core, hev-task-system, yaml (traffic forwarding) | MIT, © hev (Heiher) |
| lwIP (traffic forwarding) | BSD-3-Clause, © Swedish Institute of Computer Science |
| russia-v2ray-rules-dat (runetfreedom), routing data | Data compiled with GPL-3.0 tools |
| GeoLite by MaxMind, country IP data | GeoLite End User License Agreement and CC BY-SA 4.0 (www.maxmind.com) |
| v2fly/domain-list-community, domain lists | MIT |
| Kotlin standard library, kotlinx.coroutines, kotlinx.serialization | Apache-2.0, © JetBrains s.r.o. |
| AndroidX (Core, Activity, Lifecycle, Compose, Material 3) | Apache-2.0, © The Android Open Source Project |
5. Source code requests
If a file is unavailable or you need the source code of the modified files in another form, email support@luchvpn.com.