diff options
author | doktornotor <notordoktor@gmail.com> | 2015-11-01 17:53:28 +0100 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-11-01 17:53:28 +0100 |
commit | 0e25345c2f8791c6fd60310cf7ff348852234cae (patch) | |
tree | 4c2e771cb959287328b19a7e19a3870b040fb4e5 /config/squid3 | |
parent | 31835a959f9fd47ca43a433ffd4b553b59a2abdc (diff) | |
download | pfsense-packages-0e25345c2f8791c6fd60310cf7ff348852234cae.tar.gz pfsense-packages-0e25345c2f8791c6fd60310cf7ff348852234cae.tar.bz2 pfsense-packages-0e25345c2f8791c6fd60310cf7ff348852234cae.zip |
squid3-dev - fix XMLRPC sync with CARP/HA
Diffstat (limited to 'config/squid3')
-rwxr-xr-x | config/squid3/33/squid.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/squid3/33/squid.inc b/config/squid3/33/squid.inc index 0f71def8..57b49d5f 100755 --- a/config/squid3/33/squid.inc +++ b/config/squid3/33/squid.inc @@ -2314,8 +2314,8 @@ function squid_sync_on_changes() { $synctimeout = $squid_sync['synctimeout']; switch ($synconchanges){ case "manual": - if (is_array($squid_sync[row])){ - $rs=$squid_sync[row]; + if (is_array($squid_sync['row'])){ + $rs=$squid_sync['row']; } else{ log_error("[squid] xmlrpc sync is enabled but there is no hosts to push on squid config."); @@ -2323,8 +2323,8 @@ function squid_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']; |