interfaces: hide missing mac info

Ever since wlan devices moved to sysctl net.wlan.devices
there is no way to grab a MAC address for any of those
listed there.
This commit is contained in:
Franco Fichtner 2022-07-27 13:24:12 +02:00
parent e12b4ab36e
commit dfdb51cafb

View File

@ -155,8 +155,8 @@ include("head.inc");
<select name="if" class="selectpicker">
<?php foreach (get_interface_list() as $ifn => $ifinfo): ?>
<?php if (match_wireless_interface($ifn)): ?>
<option value="<?=$ifn;?>" <?=$ifn == $pconfig['if'] ? "selected=\"selected\"" : "";?>>
<?=htmlspecialchars($ifn . " (" . $ifinfo['mac'] . ")");?>
<option value="<?= $ifnr ?>" <?= $ifn == $pconfig['if'] ? 'selected="selected"' : '' ?>>
<?= html_safe($ifn) ?>
</option>
<?php endif ?>
<?php endforeach ?>