summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitriy K. <DasTestament@users.noreply.github.com>2014-06-20 20:06:00 +0400
committerDmitriy K. <DasTestament@users.noreply.github.com>2014-06-20 20:06:00 +0400
commit5b3c01165ec6317d52d3d4a2c0ef8ab94472d4da (patch)
treec1798b3bf966c6f050118a357bffc331225ba592
parentbfa22b1512aa0673e4b7295b3f46067355cca3ae (diff)
downloadpfsense-5b3c01165ec6317d52d3d4a2c0ef8ab94472d4da.zip
pfsense-5b3c01165ec6317d52d3d4a2c0ef8ab94472d4da.tar.gz
Update openvpn.inc
Added verbosity check in case when verbosity_level is absent in config.xml
-rw-r--r--etc/inc/openvpn.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index c03d8a5..a6ef2f1 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -476,7 +476,12 @@ function openvpn_reconfigure($mode, $settings) {
}
}
- $conf = "verb {$settings['verbosity_level']}\n";
+ if (isset($settings['verbosity_level'])) {
+ $conf = "verb {$settings['verbosity_level']}\n";
+ } else {
+ $conf = 'verb 1\n'; // Default verbosity level
+ }
+
$conf .= "dev {$devname}\n";
$conf .= "dev-type {$settings['dev_mode']}\n";
switch($settings['dev_mode']) {
OpenPOWER on IntegriCloud