Skip to content

Commit

Permalink
Merge pull request #1733 from RaspAP/fix/dhcp-ignore
Browse files Browse the repository at this point in the history
Set dhcp-ignore=tag:!known from option switch
  • Loading branch information
billz authored Jan 19, 2025
2 parents 94b502a + 0c31b5b commit 41a1380
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/dhcp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 41a1380

Please sign in to comment.