mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5645] [Feature]: delete disabled inbounds in adding client #3932
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#3932
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?
Originally created by @Morteza820 on GitHub (Jun 28, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5645
Is your feature request related to a problem?
dear Sanaei,
i would be appreciated if you add feature which doesnt show disabled inbounds in add inbound list in add client section...
i mean when we want to add new client or edit , we wont see disabled inbounds in add or edit inbounds sector...
best regards,
Describe the solution you'd like
dear Sanaei,
i would be appreciated if you add feature which doesnt show disabled inbounds in add inbound list in add client section...
i mean when we want to add new client or edit , we wont see disabled inbounds in add or edit inbounds sector...
best regards,
Alternatives you've considered
No response
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 28, 2026):
This is a valid enhancement. The inbound selector shown when adding or editing a client currently includes disabled inbounds because the backend query that populates it does not filter on the
enablecolumn.Confirmed in the source:
internal/web/service/inbound.go,GetInboundOptions()(line 318–322): The query selectsid, remark, tag, protocol, port, stream_settings, settings, node_idand filters only byuser_id. Neither theenablecolumn is selected nor is aWHERE enable = truecondition applied.frontend/src/pages/clients/ClientFormModal.tsx, line 376–379: The frontend filters the returned list only by protocol type (MULTI_CLIENT_PROTOCOLS), not by enabled status.InboundOptionstruct and its corresponding frontend schema (src/schemas/client.ts) do not carry anenablefield at all.The minimal change needed to implement this would be:
enableto theSELECTclause and addAND enable = 1(or equivalent) to theWHEREclause inGetInboundOptions()ininternal/web/service/inbound.go.Alternatively, the
enablefield could be added toInboundOptionand the existing frontend filter inClientFormModal.tsxcould be extended, but a backend-only fix is simpler and keeps disabled inbounds out of the API response entirely.If you want to implement this yourself, the checkboxes in the "Are you willing to help?" section of the template are available — a PR against
mainfollowing the conventions inCLAUDE.mdandCONTRIBUTING.mdwould be welcome.This reply was generated automatically; a maintainer may follow up.