feat: TCP mode for VLESS support via KCP+smux over TURN tunnel

Add -tcp flag to client and server for forwarding TCP connections
(VLESS, etc.) through the TURN tunnel instead of UDP packets (WireGuard).
Stack: TCP → smux (mux) → KCP (reliability) → DTLS (encryption) → TURN
New dependencies: xtaci/kcp-go/v5, xtaci/smux
This commit is contained in:
Moroka8 committed 2026-03-31 02:29:42 +07:00
1 parent 8911340cdd
commit b798ec5744
7 files changed
+749 -106

No files matched your search

+6 -1
View File
@@ -3,4 +3,9 @@ set -e
CONNECT="${CONNECT_ADDR:?CONNECT_ADDR is required}"
exec ./vk-turn-proxy -listen 0.0.0.0:56000 -connect "$CONNECT"
TCP_FLAG=""
if [ "${TCP_MODE}" = "true" ]; then
TCP_FLAG="-tcp"
fi
exec ./vk-turn-proxy -listen 0.0.0.0:56000 -connect "$CONNECT" $TCP_FLAG