Fix: Persist dhcp-host option to dnsmasq cfg

This commit is contained in:
billz
2025-07-18 01:29:13 -07:00
parent 2c4dbb87ba
commit cc4370151f

View File

@@ -408,6 +408,9 @@ function SaveHostAPDConfig($wpa_array, $enc_types, $modes, $interfaces, $reg_dom
$config[] = 'interface='.$_POST['interface'];
$config[] = 'domain-needed';
$config[] = 'dhcp-range='.$dhcp_range;
if (!empty($syscfg['dhcp-host'])) {
$config[] = 'dhcp-host='.$syscfg['dhcp-host'];
}
if (!empty($syscfg['dhcp-option'])) {
$config[] = 'dhcp-option='.$syscfg['dhcp-option'];
}