3x-ui/internal/util/link
MHSanaei 3cdb7e2b49
fix(traffic): keep client accounting independent of outbound counters
The traffic poll read every Xray counter in one QueryStats reply under
gRPC's default 4 MiB receive limit; past it the whole poll failed and
no client was counted, so quotas stopped being enforced. Outbound
counters carry tags derived from third-party link remarks, so one long
remark was enough.

Poll the user, inbound and outbound families separately with a 64 MiB
limit, keep counting the families that answer, and cap a subscription
link's slug at 64 runes so the tag stays small to begin with.
2026-10-31 08:46:13 +00:00
..
outbound.go fix(traffic): keep client accounting independent of outbound counters 2026-10-31 08:46:13 +00:00
outbound_fuzz_test.go Test-quality audit: fix 2 prod bugs, strengthen weak tests, add mutation/fuzz/CI tooling (#5345) 2026-06-15 15:17:03 +02:00
outbound_helpers_test.go feat(sub): export TLS cipher suites as the cs query param in share links (#6825) 2026-10-24 06:44:24 +02:00
outbound_test.go fix(traffic): keep client accounting independent of outbound counters 2026-10-31 08:46:13 +00:00