mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #7091] [Bug]: Removing an inbound connection at a node #6615
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#6615
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 @artslay on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/7091
Describe the bug
When deleting or editing a node's inbound, all existing inbounds are removed—both from the local panel and from the node itself.
How to reproduce the problem
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
3.11.0
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Nov 6, 2026):
I could not reproduce "deleting one node inbound removes all of them" from the current source. Every delete path I traced acts on one inbound id only, so I need a few details before this can be confirmed or ruled out.
The report also contradicts itself: step 2 says "All inbounds are removed" and step 3 says "Other inbounds will not be deleted". The Expected and Actual behaviour sections are empty, so I can't tell which of those is the bug.
What the code does today
HttpUtil.post(/panel/api/inbounds/del/${dbInbound.id})(frontend/src/pages/inbounds/InboundsPage.tsx:482).InboundService.delInbound(id)(internal/web/service/inbound.go:1645) deletes only that row (tx.Delete(model.Inbound{}, id), line 1737). It then marks the node dirty (line 1697) and pushes one delete to the node.Remote.DelInbound(internal/web/runtime/remote.go:493-504) looks up the node-side id by that inbound's tag and callspanel/api/inbounds/del/<id>for that single id.internal/web/service/inbound_node.go:953-979) removes central inbounds the node no longer reports. It skips the sweep entirely when the node reports zero inbounds (if len(snapTags) == 0 { ... continue }, line 962). So a node that briefly answers with an empty list cannot wipe everything this way.Please reply with:
x-ui log, or: Lines containingsetRemoteTraffic,no longer reports inbound,DelInboundorremote DelInboundare the ones that matter. The sweep logsnode <id> no longer reports inbound "<tag>" ... removing it centrallyfor every inbound it removes. Those lines would show exactly which path deleted the others.Verdict: Insufficient information
Severity: N/A
Confidence: Low
Root cause: Not identified. The single-delete path is scoped to one id at every layer (
inbound.go:1737,remote.go:499), and the sync sweep is guarded against an empty node snapshot (inbound_node.go:962).Same class: Not applicable
Already fixed: Not applicable. Since v3.11.0,
152c84ef(fix(inbounds): delete an inbound's dependent rows on every delete path) touched this area, but it only removes rows tied to the deleted inbound's id.Duplicate of: None. Related: #5898, #6749 (other node-sync paths that wrongly removed node inbounds, both closed).
Evidence:
frontend/src/pages/inbounds/InboundsPage.tsx:482;internal/web/service/inbound.go:1645-1737;internal/web/runtime/remote.go:493-504;internal/web/service/inbound_node.go:953-979Not determined: which panel the delete was made on and what was actually removed. The master's log lines for the sync tick right after the delete would settle it.
This reply was generated automatically; a maintainer may follow up.