System/Wizard - omit dhcp config when not available, closes https://github.com/opnsense/core/issues/5316

This commit is contained in:
Ad Schellevis 2021-10-30 20:06:17 +02:00
parent 149564b96a
commit 3be0173e55

View File

@ -544,7 +544,7 @@ if (!empty(trim($_POST['lanipaddress']))) {
if (!empty($input_errors)) {
$stepid--;
} else {
} elseif (!empty($config['dhcpd']['lan']['range']['from'])) {
$ft = explode(".", $_POST['lanipaddress']);
$ft_ip = $ft[0] . "." . $ft[1] . "." . $ft[2] . ".";
$config['dhcpd']['lan']['range']['from'] = $ft_ip . "10";