Commit 427a3aaf authored by Franco Fichtner's avatar Franco Fichtner

openvpn: always create interfaces, closes #1002

(cherry picked from commit d4d27c14)
parent 768eb2ef
......@@ -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