3x-ui/internal/tuic
MHSanaei 61ee202750
fix(xray): bound what the in-process config loader is asked to expand
The panel runs xray-core's conf.Build() in its own process on inbounds
and on outbounds that come from pushes and subscriptions. Some values
make it allocate or loop without bound (an XHTTP sessionIDLength, udphop
port lists, any number of finalmask entries, each xmc one costing an RSA
key), and certificate paths are read whole whatever they name.

Refuse those before any build: sessionIDLength above 1024, more than one
port range's worth of udphop ports per stream, more than 16 masks per
stream, more than 64 xmc masks per outbound subscription, and certificate
or key files that are not regular files of at most 1 MiB. Inbound saves,
the TUIC readers and the certificate-pin helper apply the file rule too;
the pin helper also stops looking at paths that name files on a node.
2026-10-31 08:43:30 +00: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(xray): bound what the in-process config loader is asked to expand 2026-10-31 08:43:30 +00: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(tests): stabilize local network fixtures 2026-10-25 11:44:58 +01: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 fix(tests): stabilize local network fixtures 2026-10-25 11:44:58 +01: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(xray): bound what the in-process config loader is asked to expand 2026-10-31 08:43:30 +00:00
types_test.go fix(xray): bound what the in-process config loader is asked to expand 2026-10-31 08:43:30 +00: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