summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-09-09 21:38:35 +0200
committerErmal <eri@pfsense.org>2014-09-09 21:38:35 +0200
commit38f5ac9baeedf8c4857ebf910096e40bc8afe227 (patch)
tree3b70b8894c8e98cb1113c8823ae0851d70d69bab /etc/inc
parent572f6cccd47f72fe64e84731cf4d12ccbef46da6 (diff)
downloadpfsense-38f5ac9baeedf8c4857ebf910096e40bc8afe227.zip
pfsense-38f5ac9baeedf8c4857ebf910096e40bc8afe227.tar.gz
Correct generating loglevels for startup through ipsec.conf
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/vpn.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 3f4cb76..bb06c7f 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -49,10 +49,10 @@ 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);
+ $forconfig ? $cfgtext[] = "{$lkey} -1" : 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