From 43088d3d1d6c58d610cba3f1251de8b93c7b96b6 Mon Sep 17 00:00:00 2001 From: smurphy Date: Fri, 24 Sep 2021 12:31:28 -0400 Subject: [PATCH] Fix for issue #1016 DHCP serves wrong Subnet Mask after updaiting in the webapp --- includes/dhcp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/dhcp.php b/includes/dhcp.php index 53a33535..7785ae4b 100755 --- a/includes/dhcp.php +++ b/includes/dhcp.php @@ -182,7 +182,7 @@ function updateDnsmasqConfig($iface,$status) $config = '# RaspAP '.$iface.' configuration'.PHP_EOL; $config .= 'interface='.$iface.PHP_EOL. 'dhcp-range='.$_POST['RangeStart'].','.$_POST['RangeEnd']. - ',255.255.255.0,'; + ','.$_POST['SubnetMask'].','; if ($_POST['RangeLeaseTimeUnits'] !== 'infinite') { $config .= $_POST['RangeLeaseTime']; }