refactor(wireguard): drop removed workers field (xray v26.6.22) (#5509)

* v3.4.0

* refactor(wireguard): drop removed `workers` field (xray v26.6.22)

xray-core v26.6.22 (PR #6287) removed the WireGuard `workers` (num_workers)
config field; the engine now relies on wireguard-go's internal worker
fallback and no longer reads it. Remove it from the panel so it stops
emitting a key xray ignores.

Removed from the inbound/outbound/outbound-form WireGuard schemas, both
WireGuard forms, the outbound form adapter (both directions) and defaults,
the two affected tests, and the `workers` label in all 13 locales. Existing
configs that still carry workers are simply dropped on parse — no migration
needed since the field had no runtime effect.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Update version

---------

Co-authored-by: MHSanaei <ho3ein.sanaei@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Rouzbeh†
2026-06-23 16:23:02 +02:00
committed by GitHub
parent fd092444a8
commit b07fad0e69
22 changed files with 0 additions and 27 deletions
@@ -111,7 +111,6 @@ describe('outbound default factories: shape snapshots', () => {
const out = createDefaultWireguardOutboundSettings({ secretKey: SAMPLE_SECRET });
expect(out.secretKey).toBe(SAMPLE_SECRET);
expect(out.mtu).toBe(1420);
expect(out.workers).toBe(2);
expect(out.address).toEqual([]);
expect(out.noKernelTun).toBe(false);
expect(out.peers).toEqual([{
@@ -182,7 +182,6 @@ describe('outbound-form-adapter: round-trip', () => {
mtu: 1420,
secretKey: 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=',
address: ['10.0.0.1', 'fd00::1'],
workers: 2,
peers: [{ publicKey: 'pk', allowedIPs: ['0.0.0.0/0'], endpoint: 'e:51820', preSharedKey: 'psk' }],
reserved: [1, 2, 3],
noKernelTun: false,