Add button for pihole arpflush on Pi-hole settings page

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-05-30 22:05:13 +02:00
parent 4ed39ff8d2
commit 72abc5dad4
3 changed files with 17 additions and 11 deletions

View File

@@ -735,6 +735,15 @@ function readAdlists()
$error .= "Invalid privacy level (".$level.")!";
}
break;
// Flush network table
case "flusharp":
exec("sudo pihole arpflush quiet", $output);
$error = implode($output, "<br>");
if(strlen($error) == 0)
{
$success .= "The network table has been flushed";
}
break;
default:
// Option not found