mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5948] [Feature Request] Add remote Xray-core version selection for sub-nodes directly from the Master panel #4124
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#4124
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 @crossgg on GitHub (Jul 14, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5948
Is your feature request related to a problem?
Currently, when running 3x-ui in standalone mode, users can easily change or switch the Xray-core version directly via the panel's web UI. However, in a Master-Node architecture, this feature is missing from the Master panel's "Nodes" management page.
Why this is urgently needed (Real-world example):
Sometimes, compatibility issues arise between client cores and specific Xray versions (for example, the client-side issues described in #2967. These issues can usually be quickly resolved by upgrading or downgrading the Xray-core version on the node.
However, if an administrator manages dozens of sub-nodes, having to manually log into each sub-node's individual panel one by one to switch the Xray version is extremely tedious and highly inefficient. It completely defeats the purpose of centralized Master-Node management.
Since the standalone panel already supports version switching, it would be extremely convenient if the Master panel could send a remote command to allow administrators to select and switch the Xray-core version for any sub-node directly from the centralized "Nodes" management page.
Describe the solution you'd like
Centralized Version Selection: In the Master panel's "Nodes"list or edit modal, add a dropdown menu that lists available Xray-core versions for each sub-node.
Remote Execution: When a version is selected and saved on the Master panel, the Master should remotely trigger the respective sub-node to update/switch its Xray-core version during the next synchronization/heartbeat cycle.
Alternatives you've considered
Logging into each sub-node's individual panel separately to change the version, which is tedious when managing a large number of nodes.
Concrete use case
No response
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
Frontend (UI / panel pages), Multi-node (sub-nodes)
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jul 14, 2026):
This is a legitimate, well-scoped enhancement request. It is not implemented today, and I found no existing duplicate (see below). Adding the
New Featurelabel; it's otherwise unclaimed for now.What already exists today
Standalone version switching is exactly what you describe:
GET /panel/api/server/getXrayVersion(ServerService.GetXrayVersionsCached/GetXrayVersions,internal/web/service/server.go) lists releases from the XTLS/Xray-core GitHub API, andPOST /panel/api/server/installXray/:version(ServerService.UpdateXray, same file) stops Xray, downloads the platform-matched build, verifies its SHA-256 against XTLS's published.dgst, replaces the binary, and restarts Xray. The panel's own "Xray Updates" modal (frontend/src/pages/index/VersionModal.tsx) drives this — but only against whichever machine's own panel you're clicking on, as you noted.Why this looks feasible with fairly small effort
The Master↔Node channel already does this exact shape of thing for a sibling action — remote panel self-update:
model.Node.XrayVersion(internal/database/model/model.go:731) is already tracked per node from heartbeat data and rendered in the Nodes page (frontend/src/pages/nodes/NodeList.tsx:354-357and the per-node stats panel).NodeList.tsx:514-518,NodesPage.tsx:60,169) that POSTs{ids, dev}to/panel/api/nodes/updatePanel(internal/web/controller/node.go:318-333).NodeService.UpdatePanels(internal/web/service/node.go:648-684) walks the selected ids, skips disabled/offline nodes with a per-node error, and for each reachable node callsRemote.UpdatePanel(internal/web/runtime/remote.go:598-605), which POSTs directly to that node's ownpanel/api/server/updatePanel— the same endpoint the node's own panel calls on itself — over the existing per-node mTLS/token channel. Results return synchronously as[]NodeUpdateResult{Id, Name, OK, Error}, one entry per selected node.Since every node runs the same controller code as a standalone panel, it already exposes the
installXray/:versionendpoint this feature would call — no new node-side surface is needed. The remaining work looks like it would mirror theUpdatePanels/Remote.UpdatePanelpair, plus a version picker inNodesPage.tsx/NodeList.tsx; the version list itself doesn't need to be fetched per node, since the master's owngetXrayVersionalready serves the same shared GitHub release feed.One adjustment to the proposed design: the existing self-update precedent isn't deferred to "the next heartbeat cycle" —
UpdatePanelsonly checks the node's last-known heartbeatStatus(online/offline) as an eligibility gate, then calls the node directly and gets the result back immediately; the heartbeat afterward just picks up the resulting version for display. A version-switch action would likely follow that same immediate-call model.Separately: issue #2967, cited as the client-compatibility precedent, is actually a Chrome/HTTP-500 panel-loading report, unrelated to Xray-core client-version compatibility. This doesn't affect the merits of your request, just flagging it in case a different issue number was intended.
No duplicate open request found. The closest related-but-distinct open items are #5769 (scoping node-sync API credentials) and #5048 (per-node outbound selection in master-node); neither covers remote Xray-core version management.
This reply was generated automatically; a maintainer may follow up.