From 6a6eb333c6b73e55a8780e848c578d302a9bdcb2 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 7 Oct 2006 00:03:19 +0000 Subject: Do not sync if a CARP sync host ip is not defined. --- packages/snort/snort_xmlrpc_sync.php | 3 +++ 1 file changed, 3 insertions(+) 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'] != "") { -- cgit v1.2.3