summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-09-10 00:43:31 +0200
committerErmal <eri@pfsense.org>2014-09-10 00:43:31 +0200
commitc966c7ec54877f8a31fb599be0ba73a4c43e6fdb (patch)
treebd199a9330a923367e771a1a5e7651aacc3cf873 /etc
parenteadda9670cc035107f2d2220b5285fb99b74fbfb (diff)
downloadpfsense-c966c7ec54877f8a31fb599be0ba73a4c43e6fdb.zip
pfsense-c966c7ec54877f8a31fb599be0ba73a4c43e6fdb.tar.gz
Actually roll this back since it was a testing glitch
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/vpn.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index bb06c7f..23f205b 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -48,11 +48,11 @@ function vpn_ipsec_configure_loglevels($forconfig = false)
$cfgtext = array();
foreach ($ipsec_loglevels as $lkey => $ldescr) {
- if (!isset($config['ipsec']["ipsec_{$lkey}"]))
- $forconfig ? $cfgtext[] = "{$lkey} -1" : mwexec("/usr/local/sbin/ipsec stroke loglevel {$lkey} -1", false);
+ if (!isset($config['ipsec']["ipsec_{$lkey}"]) && !$forconfig)
+ mwexec("/usr/local/sbin/ipsec stroke loglevel {$lkey} -1", false);
else if (is_numeric($config['ipsec']["ipsec_{$lkey}"]) &&
intval($config['ipsec']["ipsec_{$lkey}"]) >= 1 && intval($config['ipsec']["ipsec_{$lkey}"]) <= 5)
- $forconfig ? $cfgtext[] = "${lkey} " . (intval($config['ipsec']["ipsec_{$lkey}"]) - 1) :
+ $forconfig ? $cfgtext[] = "${lkey} = " . (intval($config['ipsec']["ipsec_{$lkey}"]) - 1) :
mwexec("/usr/local/sbin/ipsec stroke loglevel {$lkey} " . (intval($config['ipsec']["ipsec_{$lkey}"]) - 1) , false);
}
if ($forconfig)
OpenPOWER on IntegriCloud