summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2015-11-22 09:27:55 -0600
committerLuiz Otavio O Souza <luiz@netgate.com>2015-11-22 09:27:55 -0600
commit1a2de6d640e720773e5701d53e25ed5bd728da65 (patch)
tree4db880b995d94871778da5cb2ca913b1fe28c145 /src/etc
parentaa4c2db3d985dc632e08953cf82df9a81f024f29 (diff)
downloadpfsense-1a2de6d640e720773e5701d53e25ed5bd728da65.zip
pfsense-1a2de6d640e720773e5701d53e25ed5bd728da65.tar.gz
Remove the last usage cases of $config['ipsec']['enable'].
IPSEC is always on in 2.3, where necessary (IPSEC rules, IPSEC daemon), we check the existence of phase 1 entries.
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/vpn.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/vpn.inc b/src/etc/inc/vpn.inc
index 0f9689f..c1b67c2 100644
--- a/src/etc/inc/vpn.inc
+++ b/src/etc/inc/vpn.inc
@@ -144,7 +144,7 @@ function vpn_ipsec_configure($restart = false) {
$syscfg = $config['system'];
$ipseccfg = $config['ipsec'];
- if (!isset($ipseccfg['enable'])) {
+ if (!ipsec_enabled()) {
/* try to stop charon */
mwexec("/usr/local/sbin/ipsec stop");
/* Stop dynamic monitoring */
OpenPOWER on IntegriCloud