mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
oops, hasync also triggered when not configured... make conditional and refactor
This commit is contained in:
parent
77dbb57464
commit
e274b9f58a
@ -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();
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user