error_log
This commit is contained in:
parent
e2be65baaf
commit
5a034a2419
|
|
@ -43,9 +43,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
|
||||
foreach ($data as $port => $value) {
|
||||
$tmp = explode(",", trim($value));
|
||||
if (count($tmp) >= 1) {
|
||||
if (count($tmp) > 1) {
|
||||
foreach ($tmp as $ip) {
|
||||
error_log("limit port " . $port);
|
||||
error_log("tmp count is " . count($tmp));
|
||||
exec("sudo ufw allow from " . $ip . "to any port " . $port . " proto tcp");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue