mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5509] [MERGED] refactor(wireguard): drop removed workers field (xray v26.6.22) #5909
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#5909
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/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)
7a6335ev3.4.0192a6c8refactor(wireguard): drop removedworkersfield (xray v26.6.22)c59e03bUpdate 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
workersfield 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
workersare simply dropped on parse — no migration needed.Type of change
Areas affected
How was this tested?
workersfrom the inbound/outbound/outbound-form WireGuard schemas, both WireGuard forms, the outbound form adapter (both directions) and defaults, and the two affected tests.workersdrops the key (inbound + outbound schemas).typecheck+lintpass; codegen staleness gate clean (frontend/src/generated+openapi.jsonunchanged).go build ./...andgo test ./internal/web/...pass (translation-parity checks included — theworkerslabel was removed from all 13 locales).Breaking changes
None. The field had no runtime effect; stale
workersvalues in stored configs are dropped on load.Checklist
go build ./...and the test suite pass locally.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.