mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
call overhead in interfaces_assign.php for https://github.com/opnsense/core/issues/1662
This commit is contained in:
parent
c14db1a39c
commit
24c62ed5b3
@ -322,9 +322,10 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$interfaces = list_interfaces();
|
||||
legacy_html_escape_form_data($interfaces);
|
||||
$unused_interfaces= array();
|
||||
$all_interfaces = legacy_config_get_interfaces();
|
||||
foreach ($interfaces as $portname => $portinfo) {
|
||||
$portused = false;
|
||||
foreach (legacy_config_get_interfaces() as $ifname => $ifdata) {
|
||||
foreach ($all_interfaces as $ifname => $ifdata) {
|
||||
if ($ifdata['if'] == $portname) {
|
||||
$portused = true;
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user