summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-07-25 11:07:58 -0400
committerScott Ullrich <sullrich@gmail.com>2011-07-25 11:09:36 -0400
commit6813d6e7cff0d488c489f284dabf47ee4384a64c (patch)
tree1bbc085d4e6c04c28d641833be9147c82aa5f925
parent01656166186ac300c4e06d1e74766f3dc404cd06 (diff)
downloadpfsense-6813d6e7cff0d488c489f284dabf47ee4384a64c.zip
pfsense-6813d6e7cff0d488c489f284dabf47ee4384a64c.tar.gz
Add a flag that defaults to on allowing the control of delete states from external callers such as pfCenter
-rw-r--r--etc/inc/filter.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 1b1afa2..c575adc 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -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;
@@ -397,8 +397,10 @@ function filter_configure_sync() {
if($g['booting'] == true)
echo ".";
- update_filter_reload_status(gettext("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(gettext("Running plugins"));
OpenPOWER on IntegriCloud