3x-ui/frontend/src/test/__snapshots__
MHSanaei 9c8cd08f90
feat(wireguard): multi-client support
WireGuard inbounds now manage per-client peers using xray-core's native WireGuard users (AddUser/RemoveUser). Each client lives in settings.clients (canonical, like every other protocol) and is projected to peers[] only when emitting the xray config, at level 0 so the dispatcher's per-user traffic/online counters work with no extra plumbing.

Backend: internal/util/wireguard gains KeyToHex (base64 to hex for the gRPC path), PublicKeyFromPrivate and GenerateWireguardPSK; xray/api.go builds a wireguard account in AddUser with hex keys (RemoveUser already worked); client CRUD generates a keypair and allocates a unique tunnel address per client and never rotates keys on edit; an idempotent migration converts legacy settings.peers into managed clients; WireGuard is included in the raw subscription.

Frontend: WireGuard in the add-client modal with keys on the credential tab, client schema, per-client QR/link/.conf, inbound form reduced to server settings; i18n added across 13 locales.

Fix: guard the settings[clients] assertion in add/update so a legacy WireGuard inbound stored without a clients key no longer panics.
2026-06-28 00:44:38 +02:00
..
balancer.test.ts.snap feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
dns.test.ts.snap feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
finalmask.test.ts.snap feat(xray): add loopback sniffing and per-segment fragment masks 2026-06-23 13:24:16 +02:00
headers.test.ts.snap feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
inbound-defaults.test.ts.snap feat(wireguard): multi-client support 2026-06-28 00:44:38 +02:00
inbound-form-blocks.test.tsx.snap feat(xhttp): support sessionID* rename + sessionIDTable/Length (xray v26.6.22) (#5506) 2026-06-23 17:38:16 +02:00
inbound-full.test.ts.snap feat(wireguard): multi-client support 2026-06-28 00:44:38 +02:00
inbound-link.test.ts.snap fix(sub): SS2022 share links must not base64-encode userinfo (#5432) 2026-06-20 11:25:12 +02:00
protocol-capabilities.test.ts.snap fix: expose streamSettings for Tunnel inbounds to support TProxy (#5171) 2026-06-11 11:05:42 +02:00
protocols.test.ts.snap feat(wireguard): multi-client support 2026-06-28 00:44:38 +02:00
rule.test.ts.snap feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
security.test.ts.snap fix(tls): default OCSP stapling to off for new inbound certs 2026-06-21 19:15:57 +02:00
sockopt.test.ts.snap fix(panel): normalize XHTTP/sockopt/Reality wire output and validate REALITY target (#4988) 2026-06-06 02:40:32 +02:00
stream.test.ts.snap feat(xhttp): support sessionID* rename + sessionIDTable/Length (xray v26.6.22) (#5506) 2026-06-23 17:38:16 +02:00