Commit 24c62ed5 authored by Ad Schellevis's avatar Ad Schellevis

call overhead in interfaces_assign.php for https://github.com/opnsense/core/issues/1662

parent c14db1a3
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment