aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-11-06 09:35:46 +0100
committerdoktornotor <notordoktor@gmail.com>2015-11-06 09:35:46 +0100
commit9d901b9f352f6d7102c636547aa8af206e6d8fc2 (patch)
tree139e7846a5e336c362fe57e34a36309b4cc22f2e
parenta616f7a7ce42c8c5bcf30fe2e6cad8f4d5403599 (diff)
downloadpfsense-packages-9d901b9f352f6d7102c636547aa8af206e6d8fc2.tar.gz
pfsense-packages-9d901b9f352f6d7102c636547aa8af206e6d8fc2.tar.bz2
pfsense-packages-9d901b9f352f6d7102c636547aa8af206e6d8fc2.zip
Fix XMLRPC sync with CARP/HA
The config option used has not existed since pfSense 2.1 (config version 084).
-rw-r--r--config/haproxy-legacy/haproxy.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/haproxy-legacy/haproxy.inc b/config/haproxy-legacy/haproxy.inc
index 55b86882..9b19bbd4 100644
--- a/config/haproxy-legacy/haproxy.inc
+++ b/config/haproxy-legacy/haproxy.inc
@@ -345,8 +345,8 @@ function haproxy_sync_on_changes() {
}
break;
case "auto":
- if (is_array($config['installedpackages']['carpsettings']) && is_array($config['installedpackages']['carpsettings']['config'])){
- $system_carp=$config['installedpackages']['carpsettings']['config'][0];
+ if (is_array($config['hasync'])) {
+ $system_carp = $config['hasync'];
$rs[0]['ipaddress']=$system_carp['synchronizetoip'];
$rs[0]['username']=$system_carp['username'];
$rs[0]['password']=$system_carp['password'];