mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #6463] [MERGED] feat(inbound): excludeFromSub hides links without disabling #6285
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#6285
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/6463
Author: @mrchatam
Created: 9/11/2026
Status: ✅ Merged
Merged: 9/27/2026
Merged by: @MHSanaei
Base:
main← Head:feat/hide-inbound-from-sub📝 Commits (4)
eb1dcfafeat(inbound): excludeFromSub hides links without disabling4a61e7bfix(inbound): excludeFromSub review follow-ups189eaf7Merge origin/main into feat/hide-inbound-from-suba902a87fix(sub): keep excluded inbounds' clients in the usage header📊 Changes
36 files changed (+347 additions, -0 deletions)
View changed files
📝
docs/public/openapi.json(+8 -0)📝
frontend/public/openapi.json(+8 -0)📝
frontend/src/generated/examples.ts(+1 -0)📝
frontend/src/generated/schemas.ts(+6 -0)📝
frontend/src/generated/types.ts(+1 -0)📝
frontend/src/generated/zod.ts(+1 -0)📝
frontend/src/lib/xray/inbound-form-adapter.ts(+4 -0)📝
frontend/src/models/dbinbound.ts(+3 -0)📝
frontend/src/pages/inbounds/form/InboundFormModal.tsx(+11 -0)📝
frontend/src/schemas/forms/inbound-form.ts(+1 -0)📝
frontend/src/test/inbound-form-adapter.test.ts(+29 -0)📝
internal/database/db.go(+11 -0)➕
internal/database/inbound_exclude_from_sub_migration_test.go(+58 -0)📝
internal/database/model/model.go(+1 -0)📝
internal/sub/clash_service.go(+6 -0)📝
internal/sub/json_service.go(+6 -0)📝
internal/sub/service.go(+18 -0)➕
internal/sub/service_exclude_from_sub_test.go(+77 -0)📝
internal/web/runtime/remote.go(+1 -0)📝
internal/web/runtime/remote_test.go(+9 -0)...and 16 more files
📄 Description
Summary
excludeFromSubso operators can omit an inbound from subscription output without disabling it (Xray, auth, and accounting stay active).getInboundsBySubIdwithexclude_from_sub = false, persists/syncs the flag through inbound CRUD and node wiring, and exposes a switch in the inbound form.Fixes #6435
Test plan
subId; enable Exclude from subscriptions on one; confirm raw/JSON/Clash subscription only lists the other.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.