mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-25 20:15:01 +03:00
d2d4a3270d
Three paths re-added a client to the running core with an account map the WireGuard builder refuses, and each failed add fell back to a full Xray restart that drops every connected user: a traffic reset of a quota-disabled client and bulk enable built the map by hand without publicKey and allowedIPs, and auto-renew passed keepAlive as a number where the builder takes a string. The map is now built in one place, coreUserFromClient, which the single add and update paths use too. On MTProto, AmneziaWG and TUIC inbounds, where AddUser changes nothing, the reset and the bulk toggle go through the inbound reconcile, after the traffic rows have flipped. /inbounds/add and /inbounds/import also refuse client emails and subIds the client API refuses; a master's push to a node is exempt.