mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Actually check interface gateway.
This commit is contained in:
parent
88551701a5
commit
56dfd43464
@ -100,7 +100,7 @@ if ($_POST) {
|
||||
$ifdescrs['opt' . $j] = "opt" . $j;
|
||||
}
|
||||
foreach($ifdescrs as $iface) {
|
||||
if($iface['gateway'] == $_POST['gateway'])
|
||||
if($config[$iface]['gateway'] == $_POST['gateway'])
|
||||
$input_errors[] = "{$iface['gateway']} is currently being referenced by a interface ip address.";
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user