mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Check both greater and less than for the configuration version in XMLRPC sync. Fixes #4902
This commit is contained in:
parent
6538d22fcb
commit
4379f31869
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user