mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Actually find the first wireless interface like the code says it is supposed to do, rather than finding the last.
This commit is contained in:
parent
af637766c1
commit
be2b47d542
@ -50,8 +50,10 @@ if(empty($if)) {
|
||||
/* Find the first interface
|
||||
that is wireless */
|
||||
foreach($ciflist as $interface => $ifdescr) {
|
||||
if(is_interface_wireless(get_real_interface($interface)))
|
||||
if(is_interface_wireless(get_real_interface($interface))) {
|
||||
$if = $interface;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user