From 7d53fbfbaa0c35aebf854b21abbc4a841d65372c Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Mon, 10 Aug 2015 22:47:29 +0200 Subject: snort, fix config-sync to 'system backup server' --- config/snort/snort.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/snort') diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 027207b1..0e4881aa 100755 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -3761,8 +3761,8 @@ function snort_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]['varsyncipaddress']=$system_carp['synchronizetoip']; $rs[0]['varsyncusername']=$system_carp['username']; $rs[0]['varsyncpassword']=$system_carp['password']; -- cgit v1.2.3