From aa745b2582971a4622ea6984b134d40876ea51a7 Mon Sep 17 00:00:00 2001 From: devdatt Date: Sat, 27 Dec 2025 17:21:25 +0530 Subject: [PATCH] tmp count --- encoder/firewall.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/firewall.php b/encoder/firewall.php index f2d50c2..80a000f 100644 --- a/encoder/firewall.php +++ b/encoder/firewall.php @@ -43,9 +43,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') { foreach ($data as $port => $value) { $tmp = explode(",", trim($value)); + error_log("tmp count is " . count($tmp)); if (count($tmp) > 1) { foreach ($tmp as $ip) { - error_log("tmp count is " . count($tmp)); exec("sudo ufw allow from " . $ip . "to any port " . $port . " proto tcp"); } } else {