mirror of
https://github.com/openwrt/packages.git
synced 2026-10-13 20:57:37 +04:00
- fixed log monitor source-IP spoofing (GHSA-r6hx-4f83-vp8m) Fix: per-ban_logterm source anchoring — the real source (last IP in the line) is used by default; opt-in 'first:' prefix for source-first formats (web-server access logs). - add f_mem() helper to read MemAvailable from /proc/meminfo - cap the auto-detected CPU core count by available memory in f_system: ban_cores is limited to MemAvailable / 48 (MiB per job), floored to at least 1 core; this bounds the number of feeds processed in parallel on constrained devices, a user-set ban_cores is still honored as a ceiling (the cap only ever lowers it). - derive the GNU sort buffer size from available memory, applied only when coreutils sort is present; busybox sort is a no-op Signed-off-by: Dirk Brenken <dev@brenken.org>