Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAung Ye Zaw <116444104+AungYeZawDev@users.noreply.github.com>2026-02-04 02:38:11 +0300
committerGitHub <noreply@github.com>2026-02-04 02:38:11 +0300
commitd8fb09faaeeebe34b57f1c26aa1ab8b529327989 (patch)
treeb0cef732187fb3573571f34a001a548f15c1a3e3 /web/entity
parentf87c68ea682de3b0545b206557a17affcdf2be3a (diff)
feat: implement 'last IP wins' policy for IP limitation (#3735)
- Add timestamp tracking for each client IP address - Sort IPs by connection time (newest first) instead of alphabetically - Automatically disconnect old connections when IP limit exceeded - Keep only the most recent N IPs based on LimitIP setting - Force disconnection via Xray API (RemoveUser + AddUser) - Prevents account sharing while allowing legitimate network switching - Log format: [LIMIT_IP] Email = user@example.com || Disconnecting OLD IP = 1.2.3.4 || Timestamp = 1738521234 This ensures users can seamlessly switch between networks (mobile/WiFi) and the system maintains connections from their most recent IPs only. Fixes account sharing prevention for VPN providers selling per-IP licenses. Co-authored-by: Aung Ye Zaw <zaw.a.y@phluid.world>
Diffstat (limited to 'web/entity')
0 files changed, 0 insertions, 0 deletions