mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 11:19:59 +01:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user