mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Initialize DHCP settings in setup wizard. Fixes #8889
Rather than assume they are present, create the arrays before use.
This commit is contained in:
parent
d9064f0b92
commit
7c15c19d76
@ -669,6 +669,8 @@
|
||||
If the existing DHCP range on LAN is not in the new subnet or
|
||||
is invalid, then replace the range with a newly crafted one.
|
||||
*/
|
||||
init_config_arr(array('dhcpd', 'lan', 'range', 'from'));
|
||||
init_config_arr(array('dhcpd', 'lan', 'range', 'to'));
|
||||
if (!ip_in_subnet($config['dhcpd']['lan']['range']['from'], "{$_POST['lanipaddress']}/{$_POST['subnetmask']}") ||
|
||||
!ip_in_subnet($config['dhcpd']['lan']['range']['to'], "{$_POST['lanipaddress']}/{$_POST['subnetmask']}")) {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user