diff options
author | Ermal <eri@pfsense.org> | 2014-09-10 00:43:31 +0200 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-09-10 00:43:31 +0200 |
commit | c966c7ec54877f8a31fb599be0ba73a4c43e6fdb (patch) | |
tree | bd199a9330a923367e771a1a5e7651aacc3cf873 /etc | |
parent | eadda9670cc035107f2d2220b5285fb99b74fbfb (diff) | |
download | pfsense-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.inc | 6 |
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) |