Revision 6813d6e7
Added by Scott Ullrich about 14 years ago
etc/inc/filter.inc | ||
---|---|---|
183 | 183 |
} |
184 | 184 |
|
185 | 185 |
/* reload filter sync */ |
186 |
function filter_configure_sync() { |
|
186 |
function filter_configure_sync($delete_states_if_needed = true) {
|
|
187 | 187 |
global $config, $g, $after_filter_configure_run, $FilterIflist; |
188 | 188 |
global $time_based_rules, $filterdns, $aliases; |
189 | 189 |
|
... | ... | |
397 | 397 |
if($g['booting'] == true) |
398 | 398 |
echo "."; |
399 | 399 |
|
400 |
update_filter_reload_status(gettext("Processing down interface states")); |
|
401 |
filter_delete_states_for_down_gateways(); |
|
400 |
if($delete_states_if_needed) { |
|
401 |
update_filter_reload_status(gettext("Processing down interface states")); |
|
402 |
filter_delete_states_for_down_gateways(); |
|
403 |
} |
|
402 | 404 |
|
403 | 405 |
update_filter_reload_status(gettext("Running plugins")); |
404 | 406 |
|
Also available in: Unified diff
Add a flag that defaults to on allowing the control of delete states from external callers such as pfCenter