mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-31 10:14:15 +00:00
Deleting an inbound now only detaches its clients (removes the client_inbounds rows). It no longer deletes client_traffics or client IP logs: those are keyed centrally by email (one row per client) and must survive, since a client may stay attached to other inbounds and is managed from the Clients page. Separately, /get/:id now uses a new GetInboundDetail that preloads and enriches ClientStats, so hydrated records (info / QR / export) carry per-client traffic instead of null. DBInbound.toJSON drops the internal _clientStatsMap cache so it no longer leaks into the exported JSON. |
||
|---|---|---|
| .. | ||
| api.go | ||
| api_docs_test.go | ||
| base.go | ||
| client.go | ||
| custom_geo.go | ||
| dist.go | ||
| group.go | ||
| inbound.go | ||
| index.go | ||
| login_limiter.go | ||
| login_limiter_test.go | ||
| node.go | ||
| server.go | ||
| setting.go | ||
| util.go | ||
| util_test.go | ||
| websocket.go | ||
| xray_setting.go | ||
| xui.go | ||