diff --git a/scripts/pi-hole/php/savesettings.php b/scripts/pi-hole/php/savesettings.php index cc02ffc6..13c60862 100644 --- a/scripts/pi-hole/php/savesettings.php +++ b/scripts/pi-hole/php/savesettings.php @@ -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)."
"; $success .= "The DNS settings have been updated (using ".count($DNSservers)." DNS servers)"; }