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:36 -0400
commit88cce82b304cd9e0e253f29a9bd3fdc9241260a7 (patch)
treef8b5860b7f256ed933249aae86435d2e1e6796a0
parent60ebb4736c38669464c48497914baf8cbdb8849e (diff)
downloadpfsense-88cce82b304cd9e0e253f29a9bd3fdc9241260a7.zip
pfsense-88cce82b304cd9e0e253f29a9bd3fdc9241260a7.tar.gz
Use proper IPsec enable test. Fixes #6351
-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