Merge pull request #951 from pi-hole/new/arp-flush

Add button for pihole arpflush on Pi-hole settings page
This commit is contained in:
Mark Drobnak
2019-07-04 14:10:29 -04:00
committed by GitHub
3 changed files with 17 additions and 11 deletions

View File

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