summaryrefslogtreecommitdiffstats
path: root/etc/rc.newipsecdns
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2011-12-19 21:37:34 +0200
committerWarren Baker <warren@decoy.co.za>2011-12-19 21:37:34 +0200
commita56a7ee9d41af90605612f31f476fc25c83eb0b2 (patch)
tree2aaade072884629fa0abedc6f989fbd00ab11250 /etc/rc.newipsecdns
parenta947a9d610e57a5e22829d22a7de628e66b88df1 (diff)
downloadpfsense-a56a7ee9d41af90605612f31f476fc25c83eb0b2.zip
pfsense-a56a7ee9d41af90605612f31f476fc25c83eb0b2.tar.gz
Only log this if IPSec is enabled
Diffstat (limited to 'etc/rc.newipsecdns')
-rwxr-xr-xetc/rc.newipsecdns3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.newipsecdns b/etc/rc.newipsecdns
index 2e53f99..ba46568 100755
--- a/etc/rc.newipsecdns
+++ b/etc/rc.newipsecdns
@@ -45,7 +45,8 @@
}
$ipseclck = lock('ipsecdns', LOCK_EX);
- log_error("IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing.");
+ if(isset($config['ipsec']['enable']))
+ log_error("IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing.");
/* We will walk the list of hostnames found in the ipsec tunnel
* configuration. Since we are already triggered by filterdns
* that a hostname has changed we can proceed to compare the
OpenPOWER on IntegriCloud