mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
dhcp: fix a crash report
This commit is contained in:
parent
a8d880065e
commit
62a8d031e4
@ -279,7 +279,7 @@ if (isset($_POST['submit'])) {
|
||||
$input_errors[] = gettext("You cannot use the broadcast address in the ending subnet range.");
|
||||
|
||||
// Disallow a range that includes the virtualip
|
||||
if (is_array($config['virtualip']['vip'])) {
|
||||
if (isset($config['virtualip']['vip'])) {
|
||||
foreach($config['virtualip']['vip'] as $vip) {
|
||||
if($vip['interface'] == $if)
|
||||
if($vip['subnet'] && is_inrange_v4($vip['subnet'], $_POST['range_from'], $_POST['range_to']))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user