3x-ui/frontend/public
mrchatam 6f40a75909
feat(inbound): excludeFromSub hides links without disabling (#6463)
* feat(inbound): excludeFromSub hides links without disabling

Add a per-inbound flag that omits subscription output while keeping the
inbound enabled for Xray, auth, and traffic accounting. Fixes #6435.

* fix(inbound): excludeFromSub review follow-ups

gofumpt model.go, sync docs OpenAPI, keep excludeFromSub master-authored
on node mirror, and exercise the legacy add-column migration path in tests.

* fix(sub): keep excluded inbounds' clients in the usage header

The excludeFromSub filter sat in getInboundsBySubId's SQL, so an excluded
inbound's clients never reached seenEmails in the raw, Clash or JSON
renderer. A client that lives only on a hidden inbound (one client per
inbound sharing a subId) dropped out of the Subscription-Userinfo usage,
quota and expiry and out of the info-node state, while the inbound kept
serving it and counting its traffic.

The query returns every enabled inbound again; each renderer skips an
excluded inbound's links but still counts its clients, the same rule the
Clash renderer already applies to external links it cannot express.

---------

Co-authored-by: mrchatam <mrchatam@users.noreply.github.com>
Co-authored-by: MHSanaei <ho3ein.sanaei@gmail.com>
2026-09-27 12:26:37 +02:00
..
icons feat(web): add network-only PWA installability (#6190) 2026-08-18 15:33:20 +02:00
manifest.webmanifest feat(web): add network-only PWA installability (#6190) 2026-08-18 15:33:20 +02:00
mockServiceWorker.js feat(i18n): translate the log levels, access events and calendar labels (#6226) 2026-08-18 11:43:59 +02:00
openapi.json feat(inbound): excludeFromSub hides links without disabling (#6463) 2026-09-27 12:26:37 +02:00
pwa-register.js feat(web): add network-only PWA installability (#6190) 2026-08-18 15:33:20 +02:00
service-worker.js feat(web): add network-only PWA installability (#6190) 2026-08-18 15:33:20 +02:00