3x-ui/internal/tuic
Egor 207c705300
fix(tuic): preserve client identity for Xray user routing (#6875)
TUIC traffic reached Xray through a loopback SOCKS relay that took no login,
so Xray never learned which client a connection belonged to and user routing
rules never matched TUIC (#6874). The relay now carries one account per client
email, so per-user rules match on TCP and both UDP modes; admission stays with
the native TUIC server.

Adding, removing or renaming a TUIC client swaps only that inbound's relay
instead of restarting Xray: new sessions wait behind a bounded gate while live
streams and UDP associations continue, accounts are verified after the swap and
rolled back on failure, one failing relay no longer strands the others or blocks
unrelated live changes, and emails over SOCKS5's 255-byte limit are excluded
with a warning.
2026-10-24 06:20:39 +02:00
..
auth.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
auth_test.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
manager.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00
manager_live_traffic_test.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00
manager_shutdown_test.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00
manager_test.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
protocol.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
protocol_test.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
relay_gate.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00
relay_gate_test.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00
relay_logging_test.go fix(tuic): accept the server's STOP_SENDING when tests close uni streams 2026-10-03 15:48:05 +02:00
relay_recovery_test.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
relay_shutdown_test.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
revocation_snapshot_test.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
server.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00
server_settings_test.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
server_test.go fix(tuic): accept the server's STOP_SENDING when tests close uni streams 2026-10-03 15:48:05 +02:00
socks_bridge.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00
socks_bridge_test.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
stream_udp_lifecycle_test.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00
types.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00
types_test.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00
udp_associations.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00
udp_pending.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00
udp_pending_test.go fix(tuic): preserve client identity for Xray user routing (#6875) 2026-10-24 06:20:39 +02:00