mirror of
https://github.com/pi-hole/web.git
synced 2026-04-25 19:29:20 +01:00
Merge pull request #454 from pi-hole/fix/dns-servers-undefined-var
Fix undefined variable when setting DNS servers
This commit is contained in:
@@ -228,7 +228,7 @@ function isinserverlist($addr) {
|
||||
if(!strlen($error))
|
||||
{
|
||||
$IPs = implode (",", $DNSservers);
|
||||
exec("sudo pihole -a setdns ".$IPs." ".$extra);
|
||||
$return = exec("sudo pihole -a setdns ".$IPs." ".$extra);
|
||||
$success .= htmlspecialchars($return)."<br>";
|
||||
$success .= "The DNS settings have been updated (using ".count($DNSservers)." DNS servers)";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user