mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4913] [Feature]: node enhancement #3437
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#3437
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 @mshahr1 on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4913
Is your feature request related to a problem?
No
Describe the solution you'd like
After installing and using Sanaei Panel version 3.2.7, many of the bugs from previous versions have been resolved. The panel has improved significantly, and I can confidently say this is the best version yet.
I have two suggestions for you that I think would be very useful:
Adding an option to enable a SOCKS proxy for specific nodes: The reason for this suggestion is that, due to the current network conditions in Iran, nodes located outside the country are not easily accessible. Having an option to route API requests through a proxy would be a massive help.
Allowing user updates when nodes are offline: Currently, when editing a user from the main panel (which manages the other nodes), if even one node is offline, the modification fails. Given the frequent internet disruptions in Iran, it would be extremely practical if we could still successfully save and update the user's data regardless of a node's offline status.
Thank you again for all your hard work!
Alternatives you've considered
No response
Concrete use case
Nodes
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 4, 2026):
Thanks for the detailed suggestions and for testing v3.2.7!
I've checked the source to understand where these would need to land:
1. Per-node SOCKS/HTTP proxy for API connections
Currently not implemented. The
Nodestruct (database/model/model.go) has no proxy field, and both HTTP clients that dial out to nodes (nodeHTTPClientinweb/service/node.goandremoteHTTPClientinweb/runtime/remote.go) use a fixed transport with no proxy support.What would be needed:
Nodemodel (e.g.ProxyURL— a full URL likesocks5://user:pass@host:port) with a DB migration.nodeHTTPClientFor()inweb/service/node.goand the transport construction inweb/runtime/remote.gowould need to pick up that field and pass it tohttp.ProxyURL()on the transport.This is a self-contained, well-scoped change that would be a great first PR if you'd like to help implement it.
2. Save client updates even when a node is offline
This is confirmed in the code. In
web/service/client.go(UpdateInboundClient, around line 3538), when the remote runtime for a node inbound cannot be reached, the error bubbles straight back to the API call and the whole DB transaction is rolled back — so nothing is saved. The same all-or-nothing behaviour exists at the inbound level inweb/service/inbound.go(UpdateInbound, around line 895).What would be needed:
This would be a larger change touching both the service layer and the API response shape (to distinguish "saved OK, some nodes unreachable" from a true failure), but it would make the panel significantly more resilient under the network conditions you described.
Both are genuine gaps worth tracking. If you or another contributor wants to open a PR for either, the key files are:
database/model/model.go— Node structweb/service/node.go— probe / node HTTP clientweb/runtime/remote.go— remote API clientweb/service/client.go—UpdateInboundClient/Updateweb/service/inbound.go—UpdateInbound@MHSanaei commented on GitHub (Jun 12, 2026):
Thanks for the kind words! This issue bundles several loose suggestions, which makes it hard to track or act on as one item. Closing this umbrella — please open a separate issue per concrete suggestion (one feature, what it should do, where in the UI) so each can be triaged on its own merits.