summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-05-12 13:02:20 -0400
committerjim-p <jimp@pfsense.org>2016-05-12 13:02:51 -0400
commitada85fc22e2df48bdcaa9cbc7e2aac840831b0f0 (patch)
tree145c23684a964589b4e7bc73fb9a01da64b10199
parentaec067d17de497a1f2971649ce0a6d0e8ed5d563 (diff)
downloadpfsense-RELENG_2_3_0.zip
pfsense-RELENG_2_3_0.tar.gz
Use proper IPsec enable test. Fixes #6351RELENG_2_3_0
-rwxr-xr-xsrc/etc/rc.newipsecdns2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/rc.newipsecdns b/src/etc/rc.newipsecdns
index 7c5428a..c4581ae 100755
--- a/src/etc/rc.newipsecdns
+++ b/src/etc/rc.newipsecdns
@@ -46,7 +46,7 @@ if (file_exists("{$g['varrun_path']}/booting")) {
return;
}
-if (isset($config['ipsec']['enable'])) {
+if (ipsec_enabled()) {
sleep(15);
log_error("IPSEC: One or more IPsec tunnel endpoints has changed its IP. Refreshing.");
} else {
OpenPOWER on IntegriCloud