mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 19:29:20 +01:00
Fix some suggestions / ignore others
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
@@ -286,7 +286,7 @@ function deleteAllCustomDNSEntries($reload="")
|
||||
$reload = $_REQUEST['reload'];
|
||||
|
||||
$existingEntries = getCustomDNSEntries();
|
||||
// passing false to pihole_execute stops pihole from reloading after each enty has been deleted
|
||||
// passing false to pihole_execute stops pihole from reloading after each entry has been deleted
|
||||
foreach ($existingEntries as $entry) {
|
||||
pihole_execute("-a removecustomdns ".$entry->ip." ".$entry->domain." ".$reload);
|
||||
}
|
||||
@@ -438,7 +438,7 @@ function deleteAllCustomCNAMEEntries($reload="")
|
||||
$reload = $_REQUEST['reload'];
|
||||
|
||||
$existingEntries = getCustomCNAMEEntries();
|
||||
// passing false to pihole_execute stops pihole from reloading after each enty has been deleted
|
||||
// passing false to pihole_execute stops pihole from reloading after each entry has been deleted
|
||||
foreach ($existingEntries as $entry) {
|
||||
pihole_execute("-a removecustomcname ".$entry->domain." ".$entry->target." ".$reload);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user