Commit 4c087a28 authored by Franco Fichtner's avatar Franco Fichtner

openvpn: of course, skip mismatch in previous ;)

parent b521b24c
...@@ -1156,6 +1156,9 @@ function openvpn_configure_single($id) ...@@ -1156,6 +1156,9 @@ function openvpn_configure_single($id)
foreach (array('server', 'client') as $mode) { foreach (array('server', 'client') as $mode) {
if (isset($config['openvpn']["openvpn-{$mode}"])) { if (isset($config['openvpn']["openvpn-{$mode}"])) {
foreach ($config['openvpn']["openvpn-{$mode}"] as &$settings) { foreach ($config['openvpn']["openvpn-{$mode}"] as &$settings) {
if ($id != $settings['vpnid']) {
continue;
}
openvpn_reconfigure($mode, $settings); openvpn_reconfigure($mode, $settings);
openvpn_restart($mode, $settings); openvpn_restart($mode, $settings);
return; 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