1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2025-03-01 10:31:47 +00:00

Merge pull request from RaspAP/fix/dhcp-ignore

Set dhcp-ignore=tag:!known from option switch
This commit is contained in:
Bill Zimmerman 2025-01-19 09:55:57 +01:00 committed by GitHub
commit 41a138026b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -268,6 +268,9 @@ function updateDnsmasqConfig($iface,$status)
}
$config .= PHP_EOL;
}
if ($_POST['dhcp-ignore'] == "1") {
$config .= 'dhcp-ignore=tag:!known'.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);