mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-02 03:05:02 +03:00
776ca554bd
GetXrayLogs held one entry for every line of Xray's access log and cut the list to the requested count only at EOF, so the panel's memory grew with the file. Xray writes a line for every refused request, which puts the file's size in the hands of anyone who can reach an inbound port, and the periodic prune does not bound it between runs. A negative count also panicked on the final slice. Entries beyond the newest count are dropped while scanning, and count is clamped to 1..10000 with 100 as the fallback, as GetAmneziaWGLogs already does.