mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5887] [Bug]: WireGuard export function for peer not working #4081
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#4081
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 @iamirh3 on GitHub (Jul 10, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5887
Describe the bug
wiregaurd export function for peer not work in last version v26.6.27
How to reproduce the problem
wiregaurd export function for peer not work in last version v26.6.27
Expected behavior
No response
Actual behavior
No response
Relevant logs
Screenshots
No response
3x-ui version
26.6.27
Xray-core version
No response
How did you install 3x-ui?
install.sh script
Operating system
ubuntu 22
Which parts of the panel are affected?
No response
Browser (only if it is a UI bug)
No response
Is the panel behind a reverse proxy or CDN?
None
Before submitting
@github-actions[bot] commented on GitHub (Jul 10, 2026):
This looks like one of several confirmed defects in WireGuard's new multi-client implementation, which shipped in v3.4.2 and has already had multiple fixes land on
mainthat are not yet in any tagged release. Note: the "3x-ui version" field says26.6.27— per the v3.4.2 release notes ("bundled core bumped to xray-core v26.6.27"), that's the Xray-core version, not the panel version, so I'm treating this as 3x-ui v3.4.2 (the current latest release, and whatinstall.shinstalls).Title: WireGuard per-client export/config generation and live peer sync have multiple correctness bugs in v3.4.2's new multi-client implementation
Severity: High
Category: Correctness
Why this matters: v3.4.2 reworked WireGuard inbounds from single-peer to full multi-client. Comparing
v3.4.2...main, three defects in that rework were found and fixed afterward, none of which are in v3.4.2 or any tagged release:f90e4a69— the per-client WireGuard config shown/downloaded from the Clients page (ClientQrModal.tsx/ClientInfoModal.tsx, built bybuildWireguardClientConfiginfrontend/src/pages/clients/wireguardConfig.ts) used the master panel's hostname forEndpoint =instead of the hosting node's address, so an exported.conf/QR for a WireGuard inbound running on a managed sub-node pointed at the wrong server. This only affects multi-node setups (or an inbound using a non-default share-address strategy) — a plain standalone panel already fell back to the correct host.cb5b3a80— the live gRPC apply path ((*Inbound).GenXrayInboundConfigininternal/database/model/model.go, invoked byLocal.AddInbound/UpdateInboundininternal/web/runtime/local.go) never converted the panel'ssettings.clientsinto thepeersarray xray-core's WireGuard inbound expects. Certain inbound-level edits push the WireGuard inbound back to the running Xray process with zero peers, disconnecting every client on that inbound until Xray is fully restarted. The exported.confitself still looks correct (it's built from the database, not the live process), but the peer can't actually connect. Per the fix commit, this hit both node-managed inbounds edited from the master and "plain WireGuard inbound edits on a standalone panel."d2efe9b0— WireGuard clients were missing entirely from the Clash and JSON subscription outputs (only the raw subscription/QR path worked).Recommendation: The fixes are already on
main(v3.4.2 added an in-panel option to switch to the rolling dev channel from a stable build, Settings → General) but are not yet in a tagged release. As an immediate workaround, after adding or editing a WireGuard client, use "Restart Xray" on the panel's status card to force a full config regeneration, then re-export the peer's config. A maintainer may decide whether to backport these specific commits into a patch release — tagging @MHSanaei.To confirm exactly which of the three this is, could you provide:
x-uion the server (top of the management menu) —26.6.27above is the Xray-core version, not the panel version.Endpoint, or a file that downloads fine but the peer just can't connect?This reply was generated automatically; a maintainer may follow up.