aboutsummaryrefslogtreecommitdiffstats
path: root/packages/snort
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-10-07 00:03:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-10-07 00:03:19 +0000
commit6a6eb333c6b73e55a8780e848c578d302a9bdcb2 (patch)
treeefc016c023b028a85ab8443ac65908efb0df6803 /packages/snort
parent40f06dc9d5a82b61dbe730feb60a1d9fcf2223c8 (diff)
downloadpfsense-packages-6a6eb333c6b73e55a8780e848c578d302a9bdcb2.tar.gz
pfsense-packages-6a6eb333c6b73e55a8780e848c578d302a9bdcb2.tar.bz2
pfsense-packages-6a6eb333c6b73e55a8780e848c578d302a9bdcb2.zip
Do not sync if a CARP sync host ip is not defined.
Diffstat (limited to 'packages/snort')
-rw-r--r--packages/snort/snort_xmlrpc_sync.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/snort/snort_xmlrpc_sync.php b/packages/snort/snort_xmlrpc_sync.php
index 89a7065d..aaef83a8 100644
--- a/packages/snort/snort_xmlrpc_sync.php
+++ b/packages/snort/snort_xmlrpc_sync.php
@@ -50,6 +50,9 @@ function snort_do_xmlrpc_sync() {
$carp = &$config['installedpackages']['carpsettings']['config'][0];
$password = $carp['password'];
+ if(!$carp['synchronizetoip'])
+ return;
+
log_error("[SNORT] snort_xmlrpc_sync.php is starting.");
$xmlrpc_sync_neighbor = $carp['synchronizetoip'];
if($config['system']['webgui']['protocol'] != "") {