Commit Graph
3 Commits
Author SHA1 Message Date
Moroka8 41e7cb1632 Merge branch 'feat/tcp-vless-mode' 2026-04-04 13:56:37 +07:00
Moroka8 8acc5535f7 feat: round-robin multi-session TCP mode for increased throughput
Distribute incoming TCP connections across N parallel TURN+DTLS+KCP+smux
sessions in round-robin fashion, aggregating bandwidth of multiple relays.
Add sessionPool with thread-safe add/remove/pick operations.
Each session is maintained by its own goroutine with auto-reconnect.
The -n flag now controls session count in TCP mode (default 16 for VK).
Refactor: extract createSmuxSession from runTCPSession for reuse.
2026-04-03 14:33:18 +07:00
Moroka8 b798ec5744 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
2026-03-31 02:29:42 +07:00