diff options
author | Ermal LUÇI <eri@pfsense.org> | 2014-12-17 12:54:48 +0100 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2014-12-17 12:54:48 +0100 |
commit | c1476a2abb8965a92a52146773be59ade4547cfa (patch) | |
tree | 1d05fea578f7e67d16b1fd7a8e8101f3e5212523 | |
parent | 059929826e3b7bfbae067599d3a0f17e160fa35e (diff) | |
download | pfsense-c1476a2abb8965a92a52146773be59ade4547cfa.zip pfsense-c1476a2abb8965a92a52146773be59ade4547cfa.tar.gz |
Give the proper value for the logging level since even 0 is the correct value coming from GUI.
-rw-r--r-- | etc/inc/vpn.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 201d484..b2101f3 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -51,7 +51,7 @@ function vpn_ipsec_configure_loglevels($forconfig = 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) + intval($config['ipsec']["ipsec_{$lkey}"]) >= 0 && intval($config['ipsec']["ipsec_{$lkey}"]) <= 5) $forconfig ? $cfgtext[] = "${lkey} " . (intval($config['ipsec']["ipsec_{$lkey}"]) - 1) : mwexec("/usr/local/sbin/ipsec stroke loglevel {$lkey} " . (intval($config['ipsec']["ipsec_{$lkey}"]) - 1) , false); } |