[PR #5509] [MERGED] refactor(wireguard): drop removed workers field (xray v26.6.22) #5909

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

📋 Pull Request Information

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

Base: main ← Head: feat/wireguard-drop-workers-v26.6.22


📝 Commits (3)

  • 7a6335e v3.4.0
  • 192a6c8 refactor(wireguard): drop removed workers field (xray v26.6.22)
  • c59e03b Update version

📊 Changes

22 files changed (+0 additions, -27 deletions)

View changed files

📝 frontend/src/lib/xray/outbound-defaults.ts (+0 -1)
📝 frontend/src/lib/xray/outbound-form-adapter.ts (+0 -2)
📝 frontend/src/pages/inbounds/form/protocols/wireguard.tsx (+0 -3)
📝 frontend/src/pages/xray/outbounds/protocols/wireguard.tsx (+0 -3)
📝 frontend/src/schemas/forms/outbound-form.ts (+0 -1)
📝 frontend/src/schemas/protocols/inbound/wireguard.ts (+0 -1)
📝 frontend/src/schemas/protocols/outbound/wireguard.ts (+0 -1)
📝 frontend/src/test/outbound-defaults.test.ts (+0 -1)
📝 frontend/src/test/outbound-form-adapter.test.ts (+0 -1)
📝 internal/web/translation/ar-EG.json (+0 -1)
📝 internal/web/translation/en-US.json (+0 -1)
📝 internal/web/translation/es-ES.json (+0 -1)
📝 internal/web/translation/fa-IR.json (+0 -1)
📝 internal/web/translation/id-ID.json (+0 -1)
📝 internal/web/translation/ja-JP.json (+0 -1)
📝 internal/web/translation/pt-BR.json (+0 -1)
📝 internal/web/translation/ru-RU.json (+0 -1)
📝 internal/web/translation/tr-TR.json (+0 -1)
📝 internal/web/translation/uk-UA.json (+0 -1)
📝 internal/web/translation/vi-VN.json (+0 -1)

...and 2 more files

📄 Description

Summary

Remove the WireGuard workers field from the panel to match xray-core v26.6.22 (PR #6287).

Why

xray-core v26.6.22 removed the WireGuard workers (num_workers) config field — the engine now relies on wireguard-go's internal worker fallback and no longer parses it. The panel still rendered a "Workers" input and emitted the key into generated configs, where it is now silently ignored.

The field never had a user-facing effect worth preserving, so existing configs that still carry workers are simply dropped on parse — no migration needed.

Note: two sibling v26.6.22 commits the maintainer pointed at are not panel-related and need no change — #6228 (Salamander salt math/rand→crypto/rand) and #6325 (Socks5 UDP ASSOCIATE bugfix) are both internal engine changes with no config keys.

Type of change

  • Refactoring (no behavior change)

Areas affected

  • Frontend (UI / panel pages)
  • Xray config generation

How was this tested?

  • Removed workers from the inbound/outbound/outbound-form WireGuard schemas, both WireGuard forms, the outbound form adapter (both directions) and defaults, and the two affected tests.
  • Verified directly that parsing a WireGuard config containing workers drops the key (inbound + outbound schemas).
  • Frontend typecheck + lint pass; codegen staleness gate clean (frontend/src/generated + openapi.json unchanged).
  • go build ./... and go test ./internal/web/... pass (translation-parity checks included — the workers label was removed from all 13 locales).

Breaking changes

None. The field had no runtime effect; stale workers values in stored configs are dropped on load.

Checklist

  • I tested the change locally and confirmed the described behavior.
  • I added or updated tests for the new behavior (removed assertions on the dropped field).
  • go build ./... and the test suite pass locally.
  • For frontend changes: lint, typecheck, and 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.

🤖 Generated with Claude Code


🔄 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/5509 **Author:** [@rqzbeh](https://github.com/rqzbeh) **Created:** 6/23/2026 **Status:** ✅ Merged **Merged:** 6/23/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feat/wireguard-drop-workers-v26.6.22` --- ### 📝 Commits (3) - [`7a6335e`](https://github.com/MHSanaei/3x-ui/commit/7a6335eba3465474dade18c1c99ef288b4a410a7) v3.4.0 - [`192a6c8`](https://github.com/MHSanaei/3x-ui/commit/192a6c886e3dbd61245713dd016df9898e97eca3) refactor(wireguard): drop removed `workers` field (xray v26.6.22) - [`c59e03b`](https://github.com/MHSanaei/3x-ui/commit/c59e03b49df66aa6fb6620489c399ba85f47a017) Update version ### 📊 Changes **22 files changed** (+0 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/lib/xray/outbound-defaults.ts` (+0 -1) 📝 `frontend/src/lib/xray/outbound-form-adapter.ts` (+0 -2) 📝 `frontend/src/pages/inbounds/form/protocols/wireguard.tsx` (+0 -3) 📝 `frontend/src/pages/xray/outbounds/protocols/wireguard.tsx` (+0 -3) 📝 `frontend/src/schemas/forms/outbound-form.ts` (+0 -1) 📝 `frontend/src/schemas/protocols/inbound/wireguard.ts` (+0 -1) 📝 `frontend/src/schemas/protocols/outbound/wireguard.ts` (+0 -1) 📝 `frontend/src/test/outbound-defaults.test.ts` (+0 -1) 📝 `frontend/src/test/outbound-form-adapter.test.ts` (+0 -1) 📝 `internal/web/translation/ar-EG.json` (+0 -1) 📝 `internal/web/translation/en-US.json` (+0 -1) 📝 `internal/web/translation/es-ES.json` (+0 -1) 📝 `internal/web/translation/fa-IR.json` (+0 -1) 📝 `internal/web/translation/id-ID.json` (+0 -1) 📝 `internal/web/translation/ja-JP.json` (+0 -1) 📝 `internal/web/translation/pt-BR.json` (+0 -1) 📝 `internal/web/translation/ru-RU.json` (+0 -1) 📝 `internal/web/translation/tr-TR.json` (+0 -1) 📝 `internal/web/translation/uk-UA.json` (+0 -1) 📝 `internal/web/translation/vi-VN.json` (+0 -1) _...and 2 more files_ </details> ### 📄 Description ## Summary Remove the WireGuard `workers` field from the panel to match xray-core v26.6.22 ([PR #6287](https://github.com/XTLS/Xray-core/pull/6287)). ## Why xray-core v26.6.22 removed the WireGuard `workers` (`num_workers`) config field — the engine now relies on wireguard-go's internal worker fallback and no longer parses it. The panel still rendered a "Workers" input and emitted the key into generated configs, where it is now silently ignored. The field never had a user-facing effect worth preserving, so existing configs that still carry `workers` are simply dropped on parse — no migration needed. > Note: two sibling v26.6.22 commits the maintainer pointed at are **not** panel-related and need no change — [#6228](https://github.com/XTLS/Xray-core/commit/83cf229909dfb8f0513db5a407abb190f60ab2c4) (Salamander salt `math/rand`→`crypto/rand`) and [#6325](https://github.com/XTLS/Xray-core/commit/641273848694934d6aec7992bb71162ec69f2a53) (Socks5 UDP ASSOCIATE bugfix) are both internal engine changes with no config keys. ## Type of change - [x] Refactoring (no behavior change) ## Areas affected - [x] Frontend (UI / panel pages) - [x] Xray config generation ## How was this tested? - Removed `workers` from the inbound/outbound/outbound-form WireGuard schemas, both WireGuard forms, the outbound form adapter (both directions) and defaults, and the two affected tests. - Verified directly that parsing a WireGuard config containing `workers` drops the key (inbound + outbound schemas). - Frontend `typecheck` + `lint` pass; codegen staleness gate clean (`frontend/src/generated` + `openapi.json` unchanged). - `go build ./...` and `go test ./internal/web/...` pass (translation-parity checks included — the `workers` label was removed from all 13 locales). ## Breaking changes None. The field had no runtime effect; stale `workers` values in stored configs are dropped on load. ## Checklist - [x] I tested the change locally and confirmed the described behavior. - [x] I added or updated tests for the new behavior (removed assertions on the dropped field). - [x] `go build ./...` and the test suite pass locally. - [x] For frontend changes: lint, typecheck, and 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. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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:57 +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#5909
No description provided.