oops, hasync also triggered when not configured... make conditional and refactor

This commit is contained in:
AdSchellevis 2015-04-17 19:53:37 +00:00
parent 77dbb57464
commit e274b9f58a
2 changed files with 3 additions and 7 deletions

View File

@ -183,7 +183,9 @@ function write_config($desc = 'Unknown', $backup = true)
}
/* sync carp entries to other firewalls */
carp_sync_client();
if ( isset($config['hasync']['synchronizetoip']) && trim($config['hasync']['synchronizetoip']) != "") {
configd_run('filter sync load');
}
/* cleanup backups */
cleanup_backups();

View File

@ -1461,12 +1461,6 @@ function is_interface_mismatch()
return $do_assign;
}
/* sync carp entries to other firewalls */
function carp_sync_client()
{
configd_run('filter sync load');
}
/****f* util/isAjax
* NAME
* isAjax - reports if the request is driven from prototype