3x-ui/internal/database/model
MHSanaei 7907843941
fix(node): let a node change only the clients it alone hosts
A node snapshot was merged into the master's client records by email, and
the only ownership check filtered one derived copy of it: the node's
settings were still stored and re-synced later, its stats still merged,
and a record linked to the master as well as the node took every value
the node reported, including credentials rendered into the master's own
Xray config.

Each snapshot now passes one gate before anything is written. A record
also linked to the master or another node keeps the master's values
apart from per-link fields and the lifecycle the merge already settles;
a record linked only elsewhere, a detached record, a padded or
case-variant email and a new client holding another client's subId are
dropped from the stored settings as well. A soft-orphaned record can be
taken back only by the node whose merge orphaned it, which the new
clients.sync_orphaned_by column records. A node tunnel no longer owns
the peer keys of a client a master-local tunnel also serves.
2026-11-01 00:02:12 +01:00
..
client_global_traffic.go perf(traffic): skip unchanged global writes between heartbeats (#6931) 2026-10-25 08:44:05 +01:00
client_legacy_fields.go fix(inbounds): accept v2.x client fields on inbound import 2026-09-27 18:28:07 +02:00
client_renewal_merge_test.go feat(clients): bind host rules to individual clients in subscriptions (#6620) 2026-10-24 12:33:02 +02:00
host_test.go feat(hosts): managed Hosts for per-host subscription link overrides (#5409) 2026-06-17 12:06:55 +02:00
hysteria_version_test.go fix(xray): reject configs xray-core refuses, and check the fixtures against it 2026-07-28 14:43:55 +02:00
keepalive_range_test.go feat(amneziawg): support persistent keepalive ranges (#6881) 2026-10-24 06:36:49 +02:00
keepalive_value.go feat(amneziawg): support persistent keepalive ranges (#6881) 2026-10-24 06:36:49 +02:00
model.go fix(node): let a node change only the clients it alone hosts 2026-11-01 00:02:12 +01:00
model_mtproto_test.go refactor(mtproto): manage ad-tags per client only 2026-07-07 12:19:26 +02:00
model_shadowsocks_removed_test.go feat(xray): update xray-core to v26.7.11 and adapt panel 2026-07-12 00:30:47 +02:00
model_test.go feat(clients): bind host rules to individual clients in subscriptions (#6620) 2026-10-24 12:33:02 +02:00
model_wireguard_peers_test.go fix(wireguard): build peers in GenXrayInboundConfig so node reconcile keeps clients (#5684) 2026-07-09 00:52:03 +02:00
model_wireguard_test.go feat(amneziawg): support persistent keepalive ranges (#6881) 2026-10-24 06:36:49 +02:00
node_client_ip.go perf(ip-sync): avoid redundant client IP reads and writes (#6930) 2026-10-25 14:13:18 +01:00
node_client_traffic.go refactor: focused service files, leaf subpackages, and an internal/ layout (#5167) 2026-06-10 15:19:22 +02:00
node_pending_reset.go fix(traffic): make a client reset reach every counter enforcing its quota 2026-09-28 02:56:53 +02:00
tuic_traffic_receipt.go feat(tuic): implement native in-process Go TUIC v5 server (#6577) 2026-10-03 02:56:02 +02:00