mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Do not check an interface gateway if it is blank.
This commit is contained in:
parent
401a52c7d5
commit
83b06cdc94
@ -100,8 +100,9 @@ if ($_POST) {
|
||||
$ifdescrs['opt' . $j] = "opt" . $j;
|
||||
}
|
||||
foreach($ifdescrs as $iface) {
|
||||
if($config['interfaces'][$iface]['gateway'] == $_POST['gateway'])
|
||||
$input_errors[] = "{$_POST['gateway']} is currently being referenced by an interface ip address.";
|
||||
if($config['interfaces'][$iface]['gateway'] <> "")
|
||||
if($config['interfaces'][$iface]['gateway'] == $_POST['gateway'])
|
||||
$input_errors[] = "{$_POST['gateway']} is currently being referenced by an interface ip address.";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user