mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #5623] [CLOSED] feat(wireguard): support Xray dynamic peer runtime #5932
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#5932
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5623
Author: @mrAntonD
Created: 6/27/2026
Status: ❌ Closed
Base:
main← Head:feat/wireguard-clients📝 Commits (10+)
1e9290ffeat(wireguard): manage WG peers as clients on the Clients page67ed0c8fix(wg): fix peer data loss, delete error, QR/info for WireGuard clients053200efeat(wg): show config text and download button in QR modalf7c09e4fix(wg): next IP suggestion, QR public key, and malformed JSON on add236e49cfix(wg): toggle enable/disable and show config in QR modal9231c00feat(wg): download config in info/edit modals, preserve wgPeer on hydratefe18197feat(wg): hide subscription/links blocks for WireGuard clients13ff78aperf(wg): patch peers[] in-place instead of full DB rebuild on add/update/delf4317c9fix(ci): register WgPeerSettings in codegen and document WG client endpoints962b9a3fix(ci): regenerate openapi.json after adding WG client endpoint docs📊 Changes
41 files changed (+2499 additions, -523 deletions)
View changed files
📝
frontend/public/openapi.json(+236 -2)📝
frontend/src/generated/examples.ts(+13 -2)📝
frontend/src/generated/schemas.ts(+43 -1)📝
frontend/src/generated/types.ts(+10 -0)📝
frontend/src/generated/zod.ts(+11 -0)📝
frontend/src/hooks/useClients.ts(+3 -0)📝
frontend/src/lib/xray/inbound-defaults.ts(+9 -9)📝
frontend/src/pages/api-docs/endpoints.ts(+30 -0)📝
frontend/src/pages/clients/ClientFormModal.tsx(+356 -122)📝
frontend/src/pages/clients/ClientInfoModal.css(+8 -0)📝
frontend/src/pages/clients/ClientInfoModal.tsx(+223 -96)📝
frontend/src/pages/clients/ClientQrModal.tsx(+113 -13)📝
frontend/src/pages/clients/ClientsPage.tsx(+54 -2)📝
frontend/src/pages/inbounds/form/InboundFormModal.tsx(+1 -7)📝
frontend/src/pages/inbounds/form/protocols/wireguard.tsx(+3 -123)📝
frontend/src/pages/inbounds/info/InboundInfoModal.tsx(+18 -86)📝
frontend/src/pages/inbounds/qr/QrCodeModal.tsx(+3 -2)📝
frontend/src/pages/inbounds/useInbounds.ts(+15 -2)📝
frontend/src/schemas/client.ts(+10 -0)📝
go.mod(+1 -1)...and 21 more files
📄 Description
Summary
This updates WireGuard client handling to align with Xray-core dynamic peer management introduced in Xray-core v26.6.27.
Related context:
github.com/XTLS/Xray-core@345c76f9a8What Changed
Why
Xray-core v26.6.27 changed WireGuard server-mode peers into users internally and added dynamic peer management. This PR keeps the existing 3x-ui WireGuard client model, while allowing new Xray versions to apply peer changes without rebuilding the whole inbound.
Compatibility
Validation
Automated checks:
go test ./internal/...go test ./...git diff --checkRuntime smoke test:
cd frontend && npm run buildgo build -o x-ui-build main.gov26.6.27x-uisuccessfullyx-uiservice is active26.6.27🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.