From cc4370151f4a885b11700b05d80ad4cfdb43804c Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 18 Jul 2025 01:29:13 -0700 Subject: [PATCH] Fix: Persist dhcp-host option to dnsmasq cfg --- includes/hostapd.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/hostapd.php b/includes/hostapd.php index bf44a020..0d7c9819 100755 --- a/includes/hostapd.php +++ b/includes/hostapd.php @@ -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']; }