Actually check interface gateway.

This commit is contained in:
Scott Ullrich 2006-07-24 20:22:24 +00:00
parent 88551701a5
commit 56dfd43464

View File

@ -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.";
}
}