Revision 4868ef35
Added by Jim Pingle over 6 years ago
src/usr/local/www/wizards/setup_wizard.xml | ||
---|---|---|
669 | 669 |
If the existing DHCP range on LAN is not in the new subnet or |
670 | 670 |
is invalid, then replace the range with a newly crafted one. |
671 | 671 |
*/ |
672 |
init_config_arr(array('dhcpd', 'lan', 'range', 'from')); |
|
673 |
init_config_arr(array('dhcpd', 'lan', 'range', 'to')); |
|
672 | 674 |
if (!ip_in_subnet($config['dhcpd']['lan']['range']['from'], "{$_POST['lanipaddress']}/{$_POST['subnetmask']}") || |
673 | 675 |
!ip_in_subnet($config['dhcpd']['lan']['range']['to'], "{$_POST['lanipaddress']}/{$_POST['subnetmask']}")) { |
674 | 676 |
|
Also available in: Unified diff
Initialize DHCP settings in setup wizard. Fixes #8889
Rather than assume they are present, create the arrays before use.
(cherry picked from commit 7c15c19d76eac725c42133012488cb97e4dcd885)