DSH-2Xray: Integrate xray-core into the DSH process for global traffic takeover
The DSH Host-only bundle plugin @twinsearth/dsh-2xray, maintained by TwinsEarth, functions simultaneously as an xray-core process manager and an in-process traffic router: it generates client configurations, starts and daemonizes xray subprocesses, and takes over DSH's global HTTP(S) outbound traffic after probing local inbounds. Optionally, it supports multi-node switching and statistics via a zero-dependency gRPC control plane. Version 0.8.0 is compatible with DSH 0.2.2-rc.1, requires Node >= 24.9.0, and is released under the MIT License. The article covers installation steps, cordis.patch.yml single-node and multi-node configurations, startup and shutdown order, port pinning and the "fail if occupied" strategy, inbound protocol selection, and version matching precautions.
Read More