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

Add tag set:known to dhcp-host

This commit is contained in:
billz 2021-02-22 08:00:50 +00:00
parent a33512953d
commit f156fbceae

View File

@ -175,7 +175,7 @@ function updateDnsmasqConfig($iface,$status)
$mac = trim($_POST["static_leases"]["mac"][$i]); $mac = trim($_POST["static_leases"]["mac"][$i]);
$ip = trim($_POST["static_leases"]["ip"][$i]); $ip = trim($_POST["static_leases"]["ip"][$i]);
if ($mac != "" && $ip != "") { if ($mac != "" && $ip != "") {
$config .= "dhcp-host=$mac,$ip".PHP_EOL; $config .= "dhcp-host=$mac,$ip".",set:known".PHP_EOL;
} }
} }
if ($_POST['no-resolv'] == "1") { if ($_POST['no-resolv'] == "1") {