3x-ui/frontend/src/schemas
MHSanaei 425a2bbf08
fix(amneziawg): bound what a handshake allocates and the tunnel MTU
Every handshake initiation builds Jc junk packets of Jmin..Jmax bytes
and the I1-I5 signature packets, and the limits allowed the full uint32
range and lengths of any size, so one connection made the embedded
device allocate without bound. The MTU reaches the device as an int32
and a wider value made it panic. Both ended the whole panel at the next
connection, after every restart.

Jc is now at most 128, Jmin/Jmax and each signature packet at most one
65535-byte datagram, and the MTU at most 65535. Saves refuse more, the
device setup refuses rows stored before, and the stored MTU is capped
where it is read. The form schemas carry the same limits.
2026-10-31 14:50:18 +01:00
..
api feat(hosts): give a host a pool of SNIs, random per config or shared (#6923) 2026-10-24 21:05:42 +02:00
forms feat(xray): add the MASQUE protocol and transport 2026-10-11 10:28:49 +02:00
primitives feat(tls): cipher suite presets and a uTLS fingerprint warning 2026-10-25 15:54:48 +01:00
protocols fix(amneziawg): bound what a handshake allocates and the tunnel MTU 2026-10-31 14:50:18 +01:00
client.ts feat(clients): bind host rules to individual clients in subscriptions (#6620) 2026-10-24 12:33:02 +02:00
defaults.ts feat(happ): generate Crypt5 subscription links locally (#6494) 2026-09-13 12:44:55 +02:00
dns.ts feat(xray): update xray-core to v26.10.10 and adapt panel 2026-10-11 07:55:12 +02:00
happRouting.ts feat(happ): add routing editor, optional ad blocking, and LAN bypass preset (#6545) 2026-09-26 22:57:01 +02:00
inbound.ts Move to TypeScript 7 and the oxc toolchain (oxlint + oxfmt) (#6262) 2026-08-19 15:36:27 +02:00
login.ts feat: complete Zod migration of frontend + bulk client batching (#4599) 2026-05-27 04:26:50 +02:00
node.ts fix(monitoring): read LXC CPU, swap and uptime from the container (#6920) 2026-10-24 20:24:34 +02:00
observatory.ts feat(sub): client-side balancers for the JSON subscription (#6243) 2026-08-23 22:34:20 +02:00
routing.ts feat(xray): update xray-core to v26.9.8 and adapt panel 2026-09-08 13:49:32 +02:00
setting.ts feat(hosts): add drag-and-drop and global subscription ordering (#6895) 2026-10-24 07:27:47 +02:00
status.ts fix(monitoring): read LXC CPU, swap and uptime from the container (#6920) 2026-10-24 20:24:34 +02:00
subBalancer.ts fix(frontend): key geo entries by page position and clear test-suite noise 2026-09-25 21:21:03 +02:00
xray.ts feat(xray): edit Lua DNS and routing scripts 2026-10-11 15:37:20 +02:00