Call "sudo pihole restartdns reload" after having added or removed domains to notify FTL of the updated lists.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-08-06 22:02:36 +02:00
parent 98e5f21373
commit 424fe7636b
3 changed files with 61 additions and 38 deletions

View File

@@ -63,5 +63,13 @@ switch($list) {
case "audit":
echo add_to_table($db, "domain_audit", $domains);
break;
default:
echo "Invalid list!";
exit();
break;
}
// Reload lists in pihole-FTL after having removed something
echo shell_exec("sudo pihole restartdns reload");
?>