[PR #5131] [MERGED] feat: support latest Wireguard features from Xray-core (PRs #5643, #5833, #5850) #5787

Closed
opened 2026-11-02 04:04:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/5131
Author: @rqzbeh
Created: 6/9/2026
Status: ✅ Merged
Merged: 6/10/2026
Merged by: @MHSanaei

Base: main ← Head: feat/wireguard-xray-latest


📝 Commits (6)

  • 6f6d7d1 feat: support latest Wireguard features from Xray-core
  • ee7227b Merge branch 'main' into feat/wireguard-xray-latest
  • 171f3ae Merge branch 'main' into feat/wireguard-xray-latest
  • b6e54d3 Merge branch 'main' into feat/wireguard-xray-latest
  • d1b42d8 Merge branch 'main' into feat/wireguard-xray-latest
  • 33b98de fix

📊 Changes

8 files changed (+120 additions, -33 deletions)

View changed files

📝 frontend/src/lib/xray/forms/transport/FinalMaskForm.tsx (+41 -8)
📝 frontend/src/lib/xray/protocol-capabilities.ts (+1 -1)
📝 frontend/src/pages/inbounds/form/InboundFormModal.tsx (+17 -4)
📝 frontend/src/pages/inbounds/form/protocols/wireguard.tsx (+16 -1)
📝 frontend/src/pages/xray/outbounds/OutboundFormModal.tsx (+9 -2)
📝 frontend/src/schemas/protocols/inbound/wireguard.ts (+19 -2)
📝 frontend/src/test/__snapshots__/protocol-capabilities.test.ts.snap (+14 -14)
📝 internal/web/service/inbound.go (+3 -1)

📄 Description

��### Summary

Brings the panel's Wireguard inbound schema and UI up to parity with the latest Xray-core features, specifically enabling UDP/TCP masking ( inalmask), UDP full-cone NAT (domainStrategy), and randomized UDP port intervals (
andRange).

Why

Xray-core has recently introduced several powerful capabilities for Wireguard that the panel could not configure:

  1. XTLS/Xray-core#5833: Added domainStrategy and workers to Wireguard inbounds.
  2. XTLS/Xray-core#5643: Supported Finalmask obfuscation over Wireguard & Shadowsocks.
  3. XTLS/Xray-core#5850: Supported
    andRange inside
    oise UDP obfuscation settings.

This PR upgrades the Zod schemas and the React UI components to expose these features seamlessly so panel administrators can take advantage of the latest obfuscation features natively. (Note: Shadowsocks already fully supports the Stream tab, so the
andRange noise feature works for it out-of-the-box with this PR).

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Documentation
  • Tests only
  • Build / CI / tooling
  • Other

Areas affected

  • Frontend (UI / panel pages)
  • Backend (API endpoints, login, settings)
  • Xray config generation
  • Subscription (share links / Clash / JSON)
  • Statistics / traffic counters
  • Database / migrations
  • Install / upgrade script
  • Docker image
  • Multi-node (sub-nodes)
  • Telegram bot

How was this tested?

  1. Modified the Zod inbound schemas and ran
    pm run typecheck and
    pm run lint.
  2. Verified that the Stream Settings tab now activates for Wireguard inbounds in InboundFormModal.tsx while smartly hiding the irrelevant Transmission dropdown.
  3. Verified the new domainStrategy dropdown and workers counter display properly under the Wireguard properties page.
  4. Confirmed the new
    andRange property is properly collected when generating the
    oise Finalmask envelope.

Screenshots / recordings

None

Breaking changes

None

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (when applicable).
  • go build ./... and the test suite pass locally.
  • For frontend changes:
    pm run lint,
    pm run typecheck, and
    pm run build pass.
  • I updated the Wiki / README / API docs if user-facing behavior changed.
  • My commits follow the project's existing message style.
  • I have no unrelated changes mixed into this PR.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/5131 **Author:** [@rqzbeh](https://github.com/rqzbeh) **Created:** 6/9/2026 **Status:** ✅ Merged **Merged:** 6/10/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feat/wireguard-xray-latest` --- ### 📝 Commits (6) - [`6f6d7d1`](https://github.com/MHSanaei/3x-ui/commit/6f6d7d17f9a91175e9afb3b2e12a7b79a8344dcb) feat: support latest Wireguard features from Xray-core - [`ee7227b`](https://github.com/MHSanaei/3x-ui/commit/ee7227b120d02c4f07ad266801db51fdc325cb9a) Merge branch 'main' into feat/wireguard-xray-latest - [`171f3ae`](https://github.com/MHSanaei/3x-ui/commit/171f3aed277af1a73c0e691c76b621a7758ecbbc) Merge branch 'main' into feat/wireguard-xray-latest - [`b6e54d3`](https://github.com/MHSanaei/3x-ui/commit/b6e54d3cfc8e1b7b5698ff5eb6c4cc638e0616cc) Merge branch 'main' into feat/wireguard-xray-latest - [`d1b42d8`](https://github.com/MHSanaei/3x-ui/commit/d1b42d821053c0ba913d7ae31b7d07f83cd1fcdc) Merge branch 'main' into feat/wireguard-xray-latest - [`33b98de`](https://github.com/MHSanaei/3x-ui/commit/33b98deb6a6606096b5e4b826d8bd6451b89634c) fix ### 📊 Changes **8 files changed** (+120 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/lib/xray/forms/transport/FinalMaskForm.tsx` (+41 -8) 📝 `frontend/src/lib/xray/protocol-capabilities.ts` (+1 -1) 📝 `frontend/src/pages/inbounds/form/InboundFormModal.tsx` (+17 -4) 📝 `frontend/src/pages/inbounds/form/protocols/wireguard.tsx` (+16 -1) 📝 `frontend/src/pages/xray/outbounds/OutboundFormModal.tsx` (+9 -2) 📝 `frontend/src/schemas/protocols/inbound/wireguard.ts` (+19 -2) 📝 `frontend/src/test/__snapshots__/protocol-capabilities.test.ts.snap` (+14 -14) 📝 `internal/web/service/inbound.go` (+3 -1) </details> ### 📄 Description ��### Summary Brings the panel's Wireguard inbound schema and UI up to parity with the latest Xray-core features, specifically enabling UDP/TCP masking ( inalmask), UDP full-cone NAT (domainStrategy), and randomized UDP port intervals ( andRange). ### Why Xray-core has recently introduced several powerful capabilities for Wireguard that the panel could not configure: 1. **XTLS/Xray-core#5833**: Added domainStrategy and workers to Wireguard inbounds. 2. **XTLS/Xray-core#5643**: Supported Finalmask obfuscation over Wireguard & Shadowsocks. 3. **XTLS/Xray-core#5850**: Supported andRange inside oise UDP obfuscation settings. This PR upgrades the Zod schemas and the React UI components to expose these features seamlessly so panel administrators can take advantage of the latest obfuscation features natively. (Note: Shadowsocks already fully supports the Stream tab, so the andRange noise feature works for it out-of-the-box with this PR). ### Type of change - [ ] Bug fix - [x] New feature - [ ] Refactoring (no behavior change) - [ ] Documentation - [ ] Tests only - [ ] Build / CI / tooling - [ ] Other ### Areas affected - [x] Frontend (UI / panel pages) - [ ] Backend (API endpoints, login, settings) - [x] Xray config generation - [ ] Subscription (share links / Clash / JSON) - [ ] Statistics / traffic counters - [ ] Database / migrations - [ ] Install / upgrade script - [ ] Docker image - [ ] Multi-node (sub-nodes) - [ ] Telegram bot ### How was this tested? 1. Modified the Zod inbound schemas and ran pm run typecheck and pm run lint. 2. Verified that the Stream Settings tab now activates for Wireguard inbounds in InboundFormModal.tsx while smartly hiding the irrelevant Transmission dropdown. 3. Verified the new domainStrategy dropdown and workers counter display properly under the Wireguard properties page. 4. Confirmed the new andRange property is properly collected when generating the oise Finalmask envelope. ### Screenshots / recordings None ### Breaking changes None ### Checklist - [x] I tested the change locally and confirmed the described behavior. - [x] I added or updated tests for the new behavior (when applicable). - [x] go build ./... and the test suite pass locally. - [x] For frontend changes: pm run lint, pm run typecheck, and pm run build pass. - [ ] I updated the Wiki / README / API docs if user-facing behavior changed. - [x] My commits follow the project's existing message style. - [x] I have no unrelated changes mixed into this PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 04:04:04 +07:00
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#5787
No description provided.