mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add a flag that defaults to on allowing the control of delete states from external callers such as pfCenter
This commit is contained in:
parent
caf40204ef
commit
997ea9bb45
@ -183,7 +183,7 @@ function filter_delete_states_for_down_gateways() {
|
||||
}
|
||||
|
||||
/* reload filter sync */
|
||||
function filter_configure_sync() {
|
||||
function filter_configure_sync($delete_states_if_needed = true) {
|
||||
global $config, $g, $after_filter_configure_run, $FilterIflist;
|
||||
global $time_based_rules, $filterdns, $aliases;
|
||||
|
||||
@ -396,8 +396,10 @@ function filter_configure_sync() {
|
||||
if($g['booting'] == true)
|
||||
echo ".";
|
||||
|
||||
update_filter_reload_status("Processing down interface states");
|
||||
filter_delete_states_for_down_gateways();
|
||||
if($delete_states_if_needed) {
|
||||
update_filter_reload_status(gettext("Processing down interface states"));
|
||||
filter_delete_states_for_down_gateways();
|
||||
}
|
||||
|
||||
update_filter_reload_status("Running plugins");
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user