tmp count

This commit is contained in:
devdatt 2025-12-27 17:21:25 +05:30
parent 5a034a2419
commit aa745b2582
1 changed files with 1 additions and 1 deletions

View File

@ -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 {