3x-ui/xray
MHSanaei ef8882a5c0
fix(online): scope per-inbound online to inbounds that carried traffic
Multi-inbound clients showed online on every inbound they were attached to. Xray's user-level traffic stat aggregates across all inbounds a client belongs to, so the email signal alone can't say which inbound was used.

Pair it with the inbound-level traffic signal under the same 20s grace and gate the per-inbound rollup on it: a client only shows online on inbounds that actually moved bytes this window. Remote nodes report no per-inbound activity and stay ungated (no regression). Adds GetActiveInboundsByNode, the activeInbounds WS field and POST /panel/api/clients/activeInbounds.

Fixes #4859
2026-06-03 16:19:00 +02:00
..
api.go feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
api_test.go Feat/multi inbound clients (#4469) 2026-05-19 12:20:24 +02:00
client_traffic.go Feat/multi inbound clients (#4469) 2026-05-19 12:20:24 +02:00
config.go Remove streamSettings for protocols that don't support it 2026-05-14 23:18:23 +02:00
config_test.go Feat/multi inbound clients (#4469) 2026-05-19 12:20:24 +02:00
inbound.go Remove streamSettings for protocols that don't support it 2026-05-14 23:18:23 +02:00
inbound_test.go Feat/multi inbound clients (#4469) 2026-05-19 12:20:24 +02:00
log_writer.go v3 2026-05-10 02:13:42 +02:00
online_test.go fix(online): scope per-inbound online to inbounds that carried traffic 2026-06-03 16:19:00 +02:00
process.go fix(online): scope per-inbound online to inbounds that carried traffic 2026-06-03 16:19:00 +02:00
process_other.go Feat/multi inbound clients (#4469) 2026-05-19 12:20:24 +02:00
process_test.go fix(xray): implement graceful shutdown for xray process and add tests (#4259) 2026-05-11 14:11:40 +02:00
process_windows.go Feat/multi inbound clients (#4469) 2026-05-19 12:20:24 +02:00
traffic.go docs: add comments for all functions 2025-09-20 09:35:50 +02:00