From ab77af9e5d39f43ddc54e6841831abdfd4967451 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 18 Mar 2025 03:22:03 -0700 Subject: [PATCH] Update firewallEnabled() config check --- src/RaspAP/UI/Dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RaspAP/UI/Dashboard.php b/src/RaspAP/UI/Dashboard.php index 73d515c2..fca5b352 100644 --- a/src/RaspAP/UI/Dashboard.php +++ b/src/RaspAP/UI/Dashboard.php @@ -284,7 +284,7 @@ class Dashboard { if (file_exists($this->firewallConfig) ) { $conf = parse_ini_file($this->firewallConfig); } - if ( isset($conf["firewall-enable"]) ) { + if ($conf["firewall-enable"] == 1) { return true; } return false;