mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Fix for issue #1016 DHCP serves wrong Subnet Mask after updaiting in the webapp
This commit is contained in:
parent
43088d3d1d
commit
6c0b2d8b82
@ -180,9 +180,7 @@ function compareIPs($ip1, $ip2)
|
|||||||
function updateDnsmasqConfig($iface,$status)
|
function updateDnsmasqConfig($iface,$status)
|
||||||
{
|
{
|
||||||
$config = '# RaspAP '.$iface.' configuration'.PHP_EOL;
|
$config = '# RaspAP '.$iface.' configuration'.PHP_EOL;
|
||||||
$config .= 'interface='.$iface.PHP_EOL.
|
$config .= 'interface='.$iface.PHP_EOL.'dhcp-range='.$_POST['RangeStart'].','.$_POST['RangeEnd'].','.$_POST['SubnetMask'].',';
|
||||||
'dhcp-range='.$_POST['RangeStart'].','.$_POST['RangeEnd'].
|
|
||||||
','.$_POST['SubnetMask'].',';
|
|
||||||
if ($_POST['RangeLeaseTimeUnits'] !== 'infinite') {
|
if ($_POST['RangeLeaseTimeUnits'] !== 'infinite') {
|
||||||
$config .= $_POST['RangeLeaseTime'];
|
$config .= $_POST['RangeLeaseTime'];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user