Skip to content

Commit

Permalink
Set dhcp-ignore=tag:!known from option switch
Browse files Browse the repository at this point in the history
  • Loading branch information
billz committed Jan 19, 2025
1 parent 94b502a commit 0c31b5b
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 0c31b5b

Please sign in to comment.