diff options
Diffstat (limited to 'etc/rc.filter_synchronize')
-rwxr-xr-x | etc/rc.filter_synchronize | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize index 8c97514..85befde 100755 --- a/etc/rc.filter_synchronize +++ b/etc/rc.filter_synchronize @@ -130,9 +130,10 @@ function carp_check_version($url, $username, $password, $port = 80, $method = 'p } } else { if (!isset($parsed_response['config_version']) || - $parsed_response['config_version'] < $config['version']) { - update_filter_reload_status("The other member is on older configuration version of {$g['product_name']}. Sync will not be done to prevent problems!"); - log_error("The other member is on older configuration version of {$g['product_name']}. Sync will not be done to prevent problems!"); + ($parsed_response['config_version'] < $config['version']) || + ($parsed_response['config_version'] > $config['version'])) { + update_filter_reload_status("The other member is on a different configuration version of {$g['product_name']}. Sync will not be done to prevent problems!"); + log_error("The other member is on a different configuration version of {$g['product_name']}. Sync will not be done to prevent problems!"); return false; } else { return true; |