diff options
author | Warren Baker <warren@decoy.co.za> | 2011-12-19 21:37:34 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2011-12-19 21:37:34 +0200 |
commit | a56a7ee9d41af90605612f31f476fc25c83eb0b2 (patch) | |
tree | 2aaade072884629fa0abedc6f989fbd00ab11250 /etc/rc.newipsecdns | |
parent | a947a9d610e57a5e22829d22a7de628e66b88df1 (diff) | |
download | pfsense-a56a7ee9d41af90605612f31f476fc25c83eb0b2.zip pfsense-a56a7ee9d41af90605612f31f476fc25c83eb0b2.tar.gz |
Only log this if IPSec is enabled
Diffstat (limited to 'etc/rc.newipsecdns')
-rwxr-xr-x | etc/rc.newipsecdns | 3 |
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 |