mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
filter: different approach, fix gateways generation to include local routes
This commit is contained in:
parent
f20f0c91fa
commit
fa04749813
@ -392,7 +392,7 @@ function filter_configure_sync($verbose = false)
|
||||
}
|
||||
// init interfaces and gateways
|
||||
$fw->setInterfaceMapping($cnfint);
|
||||
$fw->setGateways(return_gateways_array());
|
||||
$fw->setGateways(return_gateways_array(false, true));
|
||||
$fw->setGatewayGroups(return_gateway_groups_array());
|
||||
filter_core_bootstrap($fw);
|
||||
|
||||
|
||||
@ -175,10 +175,6 @@ class FilterRule
|
||||
{
|
||||
if (!empty($this->gatewayMapping[$value]['logic'])) {
|
||||
return " " . $this->gatewayMapping[$value]['logic'] . " ";
|
||||
} elseif ($value === 'Null4') {
|
||||
return ' route-to ( lo0 127.0.0.1 )';
|
||||
} elseif ($value === 'Null6') {
|
||||
return ' route-to ( lo0 ::1 ) ';
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user