mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5961] [Feature]: Naive client support already implemented and ready for upstream PR (low-maintenance SOCKS5-based integration) #4134
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#4134
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 @atem32 on GitHub (Jul 14, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5961
Is your feature request related to a problem?
There is currently no upstream Naive client support in 3x-ui mainline, while this functionality has already been implemented and validated locally.
So the remaining problem is not implementation feasibility, but upstream integration of an already completed solution.
Describe the solution you'd like
Naive client support is already implemented and ready to be proposed as a PR.
Current implementation is based on standard panel patterns and is intentionally low-maintenance:
Alternatives you've considered
Keep this only in a private fork:
causes long-term divergence and repetitive maintenance.
Rebuild from scratch upstream:
unnecessary since a working implementation already exists.
Create a heavy custom integration layer:
unnecessary because Naive internals are already encapsulated in the client, and panel only needs lifecycle + SOCKS5 usage.
Concrete use case
Production operator workflow with the already implemented approach:
Result:
Mockups, screenshots, or examples
Which parts of the panel would this affect?
Backend (API endpoints, login, settings)
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jul 14, 2026):
This exact request (Naive / NaiveProxy client support) has been raised twice before, in #4038 and #4826 — the latter closed explicitly as a duplicate of the former. A case-insensitive search of the current source tree for "naive" returns no matches, so nothing from those threads has landed in
main; #4038 was closed by @MHSanaei with the state reason "completed," but that closure isn't backed by any merged code or linked PR.Since this issue is framed as an architecture proposal rather than a plain feature ask, here is what the current source actually supports for it, and what it doesn't:
OutboundConfigs json_util.RawMessage,internal/xray/config.go:16), andsocksis already a first-class outbound protocol end-to-end — backend address/port handling (internal/web/service/outbound/outbound.go:277), a dedicated Zod schema (frontend/src/schemas/protocols/outbound/socks.ts), and a form wired into the Outbounds tab (frontend/src/pages/xray/outbounds/protocols/socks.tsx). An admin can already point an Xray outbound at any SOCKS5 listener today, including one an external Naive process exposes — no panel change is needed for that part of the design.model.Protocol,internal/database/model/model.go:24-35: vmess/vless/tunnel/http/trojan/shadowsocks/mixed/wireguard/hysteria/mtproto) switched over roughly 25 times across 5 files —internal/web/service/xray.go,inbound_clients.go,client_crud.go,port_conflict.go,internal/sub/clash_service.go— for client-ID generation, link building, port-conflict checks, and Clash export. That said, the general shape is precedented: MTProto is handled the same way this proposal describes, as a separate managed sidecar (mtg-multi, since Xray-core has no native mtproto protocol — see the package comment atinternal/mtproto/process.go:1-8), with its own lifecycle manager (internal/mtproto/manager.go) that hot-applies client changes over the sidecar's loopback management API (PUT /secrets,manager.go:676-701) and falls back to a restart otherwise.docs/architecture.mdalready documents the panel supervising two child processes (Xray-core andmtg-multi); a third, for Naive, would extend an existing pattern rather than introduce a new one.None of that is an assessment of your actual patch, because none was linked — the issue includes a description and five screenshots but no branch, fork, or PR/diff. Per
CONTRIBUTING.md's "Sending a pull request" section, review happens against real code on a branch offmain. The direct path to a decision from @MHSanaei is to open that PR (or link the working branch/fork) so it can be judged on the actual implementation — splitting it so the inbound lifecycle/DB/UI portion is reviewable separately from any outbound-routing wiring would match the size difference between those two pieces noted above.This reply was generated automatically and a maintainer may follow up.
@atem32 commented on GitHub (Jul 15, 2026):
Implementation is now available for review in PR: https://github.com/MHSanaei/3x-ui/pull/5962