mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-07-02 10:34:23 +00:00
9d99428cce
New peers were always seeded with allowedIPs 10.0.0.2/32, so each "Add peer" reused the same address. Derive the next address from the highest IPv4 already present across existing peers (max + 1, keeping its prefix), falling back to 10.0.0.2/32 when there are no peers yet. Closes #4682