Skip to main content
Download

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.

FilePurpose and SHA-256
proxy/socks/temp_udp_listen.go

Whole-file replacement of proxy/socks/temp_udp_listen.go: fixes closing a UDP connection when the handshake has not completed.

3116c447aa0c641e6240c8abe42190d410ef00c5c68f20f0b3b6bbcdce604274

removed.list

List of removed paths: packages that depend on GPL-licensed modules (Shadowsocks 2022).

0f72cb5a285d21e319b155c39751b1ca7e7a593b0cc11eb8a927c2918be051e9

0001-amneziawg-3.1.patch

AmneziaWG 3.1 support.

2f4627197213546a2c884760fd2d000dec0af6abf0870cf992aca76ee297c3d0

0002-awg-review-fixes.patch

AmneziaWG configuration and error-handling fixes.

9c52d88c0fac1f06e0fe25dbb4247ccd760284feb6245e9c4acf189e9ce0d929

0003-awg-device-lifecycle.patch

AmneziaWG device creation and shutdown.

31160f0f5cb6ecff9c650464ea381fde80b1fa6762a7a2d82e9a85cb9d6f2253

0004-transport-pool-lifecycle.patch

Transport connection pool lifecycle.

fc16fd01a8e4d5e0bffccfe6c0089b560ba725237455cd20d3fea227fc7457d5

0005-xhttp-hysteria-client-fixes.patch

XHTTP and Hysteria client fixes.

3259834d17cf6e3ca3580999910a830f2ed04c38046033303305299c2e5e5644

0006-drop-gpl-modules.patch

Removes the remaining Shadowsocks 2022 references and GPL/LGPL dependencies from go.mod.

5344625a1ae1f887fb4c2294e683670d171f96c38d3512f1494eea98acdaa146

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
FilePurpose and SHA-256
0001-drop-juju-ratelimit.patch

Replaces the github.com/juju/ratelimit rate limiter (LGPL-3.0) with golang.org/x/time/rate.

92707fba3c6d4bb163908ef1c725e58d305e0361bfcb81bebea2b4807873d67b

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

ComponentLicense
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 engineBSD-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 dataData compiled with GPL-3.0 tools
GeoLite by MaxMind, country IP dataGeoLite End User License Agreement and CC BY-SA 4.0 (www.maxmind.com)
v2fly/domain-list-community, domain listsMIT
Kotlin standard library, kotlinx.coroutines, kotlinx.serializationApache-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.