mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
interfaces: fix previous
Should not code cross-device.
This commit is contained in:
parent
364f938c02
commit
bbab80a8b8
@ -56,7 +56,7 @@ function webgui_configure_defer($verbose = false, $sleep = 3)
|
||||
service_log("deferred.\n", $verbose);
|
||||
}
|
||||
|
||||
function webgui_configure_do($verbose = false, $interface_map = '')
|
||||
function webgui_configure_do($verbose = false, $interface_map = null)
|
||||
{
|
||||
global $config;
|
||||
|
||||
@ -69,7 +69,7 @@ function webgui_configure_do($verbose = false, $interface_map = '')
|
||||
|
||||
/* 'newwanip_map' configuration is the only event to take second argument */
|
||||
if (!empty($interface_map)) {
|
||||
if (!count(array_intersect($interface_map, $interfaces)) {
|
||||
if (!count(array_intersect(explode(',', $interface_map), $interfaces))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@ -132,5 +132,5 @@ foreach ($interfaces as $interface) {
|
||||
plugins_configure('newwanip', false, [$interface, 'inet6']);
|
||||
}
|
||||
|
||||
plugins_configure('newwanip_map', false, [join(',' $interfaces), 'inet6']);
|
||||
plugins_configure('newwanip_map', false, [join(',', $interfaces), 'inet6']);
|
||||
rrd_configure();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user