1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

Merge branch 'feature/dhcp-eth0' of https://github.com/billz/raspap-webgui into feature/dhcp-eth0

This commit is contained in:
Bill Zimmerman 2020-12-12 18:27:46 +01:00
commit fc3925148d

View File

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