diff --git a/includes/dhcp.php b/includes/dhcp.php index 45ea156f..02755af7 100755 --- a/includes/dhcp.php +++ b/includes/dhcp.php @@ -179,7 +179,7 @@ function updateDnsmasqConfig($iface,$status) $config .= "server=$server".PHP_EOL; } if ($_POST['log-dhcp'] == "1") { - $config .= "log-dhcp".PHP_EOL; + $config .= "log-dhcp".PHP_EOL; } if ($_POST['log-queries'] == "1") { $config .= "log-queries".PHP_EOL; @@ -191,6 +191,8 @@ function updateDnsmasqConfig($iface,$status) } $config .= PHP_EOL; } + $config .= "log-facility=/tmp/dnsmasq.log".PHP_EOL; + file_put_contents("/tmp/dnsmasqdata", $config); $msg = file_exists(RASPI_DNSMASQ_PREFIX.$iface.'.conf') ? 'updated' : 'added'; system('sudo cp /tmp/dnsmasqdata '.RASPI_DNSMASQ_PREFIX.$iface.'.conf', $result);