aboutsummaryrefslogtreecommitdiffstats
path: root/config/haproxy-legacy/haproxy.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/haproxy-legacy/haproxy.inc')
-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'];