[GH-ISSUE #5948] [Feature Request] Add remote Xray-core version selection for sub-nodes directly from the Master panel #4124

Open
opened 2026-10-31 20:37:21 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @crossgg on GitHub (Jul 14, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5948

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?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
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? - [ ] I'd like to implement this feature myself and open a PR. - [x] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

@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 Feature label; 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, and POST /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-357 and the per-node stats panel).
  • The Nodes list already has a per-node action and a bulk multi-select flow (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 calls Remote.UpdatePanel (internal/web/runtime/remote.go:598-605), which POSTs directly to that node's own panel/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/:version endpoint this feature would call — no new node-side surface is needed. The remaining work looks like it would mirror the UpdatePanels/Remote.UpdatePanel pair, plus a version picker in NodesPage.tsx/NodeList.tsx; the version list itself doesn't need to be fetched per node, since the master's own getXrayVersion already 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" — UpdatePanels only checks the node's last-known heartbeat Status (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.

<!-- gh-comment-id:4965092601 --> @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 Feature` label; 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, and `POST /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-357` and the per-node stats panel). - The Nodes list already has a per-node action and a bulk multi-select flow (`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 calls `Remote.UpdatePanel` (`internal/web/runtime/remote.go:598-605`), which POSTs directly to that node's own `panel/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/:version` endpoint this feature would call — no new node-side surface is needed. The remaining work looks like it would mirror the `UpdatePanels`/`Remote.UpdatePanel` pair, plus a version picker in `NodesPage.tsx`/`NodeList.tsx`; the version list itself doesn't need to be fetched per node, since the master's own `getXrayVersion` already 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" — `UpdatePanels` only checks the node's last-known heartbeat `Status` (`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.*
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#4124
No description provided.