mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
openvpn: port to plugins_argument_map()
This commit is contained in:
parent
9ad018f580
commit
388281afaa
@ -1096,9 +1096,12 @@ function openvpn_configure_do($verbose = false, $interface_map = null, $carp_eve
|
||||
return;
|
||||
}
|
||||
|
||||
if (!plugins_argument_map($interface_map)) {
|
||||
return;
|
||||
}
|
||||
|
||||
service_log('Syncing OpenVPN settings...', $verbose);
|
||||
|
||||
$interface_map = !empty($interface_map) ? explode(',', $interface_map) : [];
|
||||
$reconfigured = false;
|
||||
|
||||
foreach (array('server', 'client') as $mode) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user