mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #5508] [CLOSED] Remove force-restart on client disable — sync stored config instead #5907
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#5907
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/5508
Author: @SKITTLE6969
Created: 6/23/2026
Status: ❌ Closed
Base:
main← Head:main📝 Commits (4)
7a6335ev3.4.0996d1f5Remove force-restart on client disable — sync stored config instead2633f46Merge branch 'main' into main35c31e2Update version📊 Changes
2 files changed (+8 additions, -6 deletions)
View changed files
📝
internal/web/job/node_traffic_sync_job.go(+4 -3)📝
internal/web/job/xray_traffic_job.go(+4 -3)📄 Description
By syncing the stored config in-memory without calling the Xray API,
the running instance remains untouched, and future hot diffs
(
tryHotApply/ComputeHotDiff) can accurately track state changes.Summary
Replaces an aggressive Xray force-restart with a lightweight in-memory configuration sync after invalid clients are removed at runtime.
Why
Calling
RestartXray(true)after runtime user removal dropped all active connections unnecessarily, as the running instance was already in the desired state. This preserves active connections and ensures future hot-diff checks are accurate.Type of change
Areas affected
Breaking changes
None
Files changed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.