mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correct gateway check. This was *WRONG*.
This commit is contained in:
parent
3955baf1f6
commit
423cd2f4f8
@ -99,8 +99,7 @@ if ($_POST) {
|
||||
}
|
||||
}
|
||||
foreach($config['filter']['rule'] as $rule) {
|
||||
if($rule['gateway'] == $pconfig['gateway']) {
|
||||
$_POST['gateway'] = $pconfig['gateway'];
|
||||
if($rule['gateway'] == $_POST['gateway']) {
|
||||
$input_errors[] = "Cannot change {$_POST['gateway']} gateway. It is currently referenced by the filter rules via policy based routing.";
|
||||
break;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user