From 2c21226043c901370879310931d5f59d303ef5e7 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Wed, 11 Feb 2026 07:42:37 +0100 Subject: [PATCH] fix(dnsguard): Fix detector status UCI path in RPCD handler The handler was looking for dns-guard.detector_${det}.enabled but UCI config uses dns-guard.${det}.enabled (without detector_ prefix). This caused all detectors to show as Disabled in the dashboard. Co-Authored-By: Claude Opus 4.5 --- .../luci-app-dnsguard/root/usr/libexec/rpcd/luci.dnsguard | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/secubox/luci-app-dnsguard/root/usr/libexec/rpcd/luci.dnsguard b/package/secubox/luci-app-dnsguard/root/usr/libexec/rpcd/luci.dnsguard index 84d68eb4..0e9cf839 100755 --- a/package/secubox/luci-app-dnsguard/root/usr/libexec/rpcd/luci.dnsguard +++ b/package/secubox/luci-app-dnsguard/root/usr/libexec/rpcd/luci.dnsguard @@ -295,7 +295,7 @@ method_guard_status() { # Detector status json_add_object "detectors" for det in dga tunneling rate_anomaly known_bad tld_anomaly; do - local det_enabled=$(uci -q get "dns-guard.detector_${det}.enabled") + local det_enabled=$(uci -q get "dns-guard.\${det}.enabled") json_add_boolean "$det" "${det_enabled:-0}" done json_close_object