Remove local DNS with custom port field as it is superseeded by the more powerful custom 1/2/3/4 implementation

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2018-05-04 19:16:55 +02:00
parent 6d8c3de5ba
commit dd96847cc5
2 changed files with 2 additions and 28 deletions

View File

@@ -213,19 +213,9 @@ function readAdlists()
}
$DNSservercount = count($DNSservers);
if(isset($_POST["localDNS"]) && isset($_POST["localDNSport"]) &&
is_numeric($_POST["localDNSport"]))
{
// Save port and modify dnsmasq.d config file
exec("sudo pihole -a localdnsport ".intval($_POST["localDNSport"]));
$DNSservercount++;
}
else
{
// Remove possible entry if unticked
// Remove possibly existing localdnsport setting
exec("sudo pihole -a localdnsport 0");
exec("sudo pihole -a localdnsport 0");
}
// Check if at least one DNS server has been added
if($DNSservercount < 1)
{