3x-ui/internal
Hamed 7d45456feb
fix(tgbot): look up a Telegram account's clients through the indexed client table (#6887)
Every bot usage command and the hourly report resolved a Telegram ID by
expanding every inbound's settings.clients, re-parsing the matched inbounds and
looking up each client again by email. With thousands of clients this ran
thousands of times per report and showed up as high PostgreSQL CPU, and an
account whose lookup came back empty was retried once per client carrying it.

The lookup now uses the normalized clients table and its Telegram-ID index in
one query per account, and the hourly pass checks each account once. Bot output
and thresholds are unchanged; link callbacks now authorize against the current
client records instead of possibly stale settings JSON.
2026-10-24 05:55:19 +02:00
..
amneziawg fix(amneziawg): bound S1-S3 by the receive buffer, reject overlapping H (#6642) 2026-09-26 22:02:49 +02:00
amneziawgnet fix(amneziawg): respect tunnel MTU when writing UDP replies (#6780) 2026-10-12 03:11:09 +02:00
config v3.10.2 2026-10-14 17:18:43 +02:00
crypto/nodetoken fix(nodetoken): stop refusing every node-token key file on Windows 2026-09-27 15:55:42 +02:00
database feat(sub): generate random IPs from CIDR host addresses (#6784) 2026-10-24 05:13:44 +02:00
eventbus chore: refresh dependencies, fix Linux tool tasks, modernize Go idioms 2026-07-25 16:08:09 +02:00
logger fix(logger): reuse the open log rotator when InitLogger runs again 2026-09-27 15:32:20 +02:00
mtproto feat(mtproto): expose mtg-multi's per-IP pending-handshake limit 2026-10-14 16:46:20 +02:00
nodee2e chore(nodes): run the master+node scopes in parallel and document both layers 2026-10-05 13:30:18 +02:00
pia chore(build): bump Go toolchain to 1.27.0 2026-08-23 21:57:03 +02:00
sub feat(sub): generate random IPs from CIDR host addresses (#6784) 2026-10-24 05:13:44 +02:00
testpg test(database): give each package its own schema when tests run on PostgreSQL (#6594) 2026-09-26 21:13:42 +02:00
tuic fix(clients): balance renewal form layout and mode guidance (#6672) 2026-10-08 21:59:38 +02:00
tunnelmonitor style: adopt golangci-lint v2 and resolve all findings 2026-06-27 15:42:22 +02:00
util fix(link): read the XHTTP fields a vmess link carries inline (#6808) 2026-10-14 15:34:35 +02:00
web fix(tgbot): look up a Telegram account's clients through the indexed client table (#6887) 2026-10-24 05:55:19 +02:00
xray fix(web): stop clean shutdowns logging false errors, and let the panel stop its children (#6884) 2026-10-24 05:15:34 +02:00