mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
openvpn: of course, skip mismatch in previous ;)
This commit is contained in:
parent
b521b24ce0
commit
4c087a2874
@ -1156,6 +1156,9 @@ function openvpn_configure_single($id)
|
||||
foreach (array('server', 'client') as $mode) {
|
||||
if (isset($config['openvpn']["openvpn-{$mode}"])) {
|
||||
foreach ($config['openvpn']["openvpn-{$mode}"] as &$settings) {
|
||||
if ($id != $settings['vpnid']) {
|
||||
continue;
|
||||
}
|
||||
openvpn_reconfigure($mode, $settings);
|
||||
openvpn_restart($mode, $settings);
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user