3x-ui/internal/database/model
MHSanaei a9191cb468
fix(amneziawg): let an emptied forwardedPorts withdraw a client's forwards
UpdateInboundClient carried the stored forwardedPorts forward whenever
the incoming value was empty, and Client.ForwardedPorts was a plain
omitempty string, so clearing the field in the client editor, as its
hint says to, reported success while the settings kept the old ports
and the host kept relaying them to the client's device.

The field is now a pointer, as KeepAlive is: nil (not sent) keeps the
stored spec and "" withdraws it. The client record follows the live
spec on every update, and a one-time seeder fills records that still
hold their creation value from the inbound settings, so the editor no
longer posts an empty field that would drop forwards added later.
2026-11-01 08:55:38 +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(amneziawg): let an emptied forwardedPorts withdraw a client's forwards 2026-11-01 08:55:38 +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 fix(amneziawg): let an emptied forwardedPorts withdraw a client's forwards 2026-11-01 08:55:38 +01: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