summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-05-22 16:51:12 +0000
committerErmal Luçi <eri@pfsense.org>2009-05-22 16:51:12 +0000
commit6e8f7b537d780261e4054aee58a8d8f34f42b34b (patch)
tree8c3401ea8d4c28ad9c969364c2c8be491ae59ada /etc/inc/config.inc
parent3cfb799dffd7a0443ba6307256f953e408baabfc (diff)
downloadpfsense-6e8f7b537d780261e4054aee58a8d8f34f42b34b.zip
pfsense-6e8f7b537d780261e4054aee58a8d8f34f42b34b.tar.gz
Move Sync of config from filter.inc filter_reload to write_config and all the code in a new file rc.filter_synchronize. The later is called by check_reload_status with the tmp/filter_sync action triggered with carp_sync_client() function. This solves the excessive syncing of configs on not needed cases and speedups the filter_configure_sync!
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index ab3a9ae..6dd751d 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -629,6 +629,10 @@ function write_config($desc="Unknown", $backup = true) {
conf_mount_ro();
unlock($lockkey);
+ unlink_if_exists("/usr/local/pkg/pf/carp_sync_client.php");
+ /* sync carp entries to other firewalls */
+ carp_sync_client();
+
if(is_dir("/usr/local/pkg/write_config/")) {
/* process packager manager custom rules */
update_filter_reload_status("Running plugins");
OpenPOWER on IntegriCloud