secubox-openwrt/package/secubox/luci-app-crowdsec-dashboard/root/usr/libexec
CyberMind-FR 707142c6bb fix(crowdsec-dashboard): Fix JSON parsing bug in overview cache
grep -c returns exit code 1 when count is 0, which triggered
the `|| echo 0` fallback to also output "0", resulting in:
  "waf_threats_today":0
  0,

This broke JSON parsing and caused the dashboard to show
CrowdSec as "STOPPED" even when running.

Fix: Use `|| :` (no-op) and set defaults with `: "${var:=0}"`

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-20 16:16:32 +01:00
..
rpcd fix(crowdsec-dashboard): Fix JSON parsing bug in overview cache 2026-03-20 16:16:32 +01:00