Add option to disable IPv6 part of the DHCP server

This commit is contained in:
DL6ER
2017-01-03 14:07:16 +01:00
parent 3e139b1b96
commit 645aab6571
2 changed files with 25 additions and 1 deletions

View File

@@ -355,9 +355,18 @@ function validDomain($domain_name)
$error .= "Lease time ".$leasetime." is invalid!<br>";
}
if(isset($_POST["useIPv6"]))
{
$ipv6 = "useIPv6";
}
else
{
$ipv6 = "noIPv6";
}
if(!strlen($error))
{
exec("sudo pihole -a enabledhcp ".$from." ".$to." ".$router." ".$leasetime." ".$domain);
exec("sudo pihole -a enabledhcp ".$from." ".$to." ".$router." ".$leasetime." ".$domain." ".$ipv6);
$success .= "The DHCP server has been activated";
}
}