Commit 97fb7d11 authored by Franco Fichtner's avatar Franco Fichtner

openvpn: slightly tweak previous

parent 2a2222a7
......@@ -890,8 +890,8 @@ function openvpn_reconfigure($mode, $settings, $device_only = false)
}
}
if (isset($settings['reneg-sec']) && $settings['reneg-sec'] != "") {
$conf .= "reneg-sec ".$settings['reneg-sec']."\n";
if (isset($settings['reneg-sec']) && $settings['reneg-sec'] != '') {
$conf .= "reneg-sec {$settings['reneg-sec']}\n";
}
openvpn_add_custom($settings, $conf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment