mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-02 11:15:03 +03:00
54339661a6
GetXrayLogs read access.log with a default bufio.Scanner, whose token limit is 64 KiB, and returned nothing at all when it stopped with ErrTooLong. Xray logs an HTTP request's URL whole, so one proxied request with a long URL blanked the Access Logs view for every client. Lines are now read with a bounded reader: a line that fits is kept whole, and a longer one keeps its first 64 KiB and its last 1 KiB, where the route and email are, so it still shows as a correctly attributed row.