secubox-openwrt/package/secubox/luci-app-mitmproxy/root/usr/libexec
CyberMind-FR c0991336bb fix(mitmproxy): Fix JSON output corruption from grep -c exit codes
grep -c returns exit code 1 when no matches found (even though it
outputs 0), causing `|| echo 0` to append an extra 0 and corrupt
the JSON response. This broke ubus calls and LuCI status display.

Use `: ${var:=0}` pattern instead to provide defaults.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 05:15:27 +01:00
..
rpcd fix(mitmproxy): Fix JSON output corruption from grep -c exit codes 2026-02-03 05:15:27 +01:00