ipsec: port to plugins_interface_map()

There was a typo here, too.  But it also wasn't fully tested
yet and not in 24.7.x yet.
This commit is contained in:
Franco Fichtner 2024-09-18 11:36:48 +02:00
parent 6e1be9df8a
commit 9ad018f580

View File

@ -1236,8 +1236,11 @@ function ipsec_configure_do($verbose = false, $interface_map = null)
{
global $config;
if (!empty($interface)) {
$interface_map = explode(',', $interface_map);
if (!plugins_argument_map($interface_map)) {
return;
}
if (!empty($interface_map)) {
$active = false;
if (isset($config['ipsec']['phase1'])) {