diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-10-07 00:03:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-10-07 00:03:19 +0000 |
commit | 6a6eb333c6b73e55a8780e848c578d302a9bdcb2 (patch) | |
tree | efc016c023b028a85ab8443ac65908efb0df6803 /packages/snort | |
parent | 40f06dc9d5a82b61dbe730feb60a1d9fcf2223c8 (diff) | |
download | pfsense-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.php | 3 |
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'] != "") { |