summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.newipsecdns
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:48 -0400
commitda249a00a3015c17f995e65a9830a7142b9f7356 (patch)
treed9c82678b8805ef8da112acf9a2072d1262d7388 /src/etc/rc.newipsecdns
parent474e70a2d178de50060c6e5f1114bb5b6963a6b6 (diff)
downloadpfsense-da249a00a3015c17f995e65a9830a7142b9f7356.zip
pfsense-da249a00a3015c17f995e65a9830a7142b9f7356.tar.gz
Use proper IPsec enable test. Fixes #6351
Diffstat (limited to 'src/etc/rc.newipsecdns')
-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