Commit d4d27c14 authored by Franco Fichtner's avatar Franco Fichtner

openvpn: always create interfaces, closes #1002

parent 3201c221
......@@ -386,7 +386,7 @@ function openvpn_reconfigure($mode, $settings, $device_only = false)
{
global $config;
if (empty($settings) || isset($settings['disable'])) {
if (empty($settings)) {
return;
}
......@@ -425,7 +425,7 @@ function openvpn_reconfigure($mode, $settings, $device_only = false)
mwexec("/sbin/ifconfig " . escapeshellarg($devname) . " group openvpn");
}
if ($device_only) {
if ($device_only || isset($settings['disable'])) {
return;
}
......
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