mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Connected devices not shown for uap0. Fixes #312
This commit is contained in:
parent
10c795edf4
commit
c07a41fc61
1 changed files with 7 additions and 1 deletions
|
@ -238,7 +238,13 @@ function DisplayDashboard()
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
exec('cat '.RASPI_DNSMASQ_LEASES.'| grep -E $(arp -i '.RASPI_WIFI_CLIENT_INTERFACE.' | grep -oE "(([0-9]|[a-f]|[A-F]){2}:){5}([0-9]|[a-f]|[A-F]){2}" | tr "\n" "\|" | sed "s/.$//")', $clients);
|
$arrHostapdConf = parse_ini_file('/etc/raspap/hostapd.ini');
|
||||||
|
if ($arrHostapdConf['WifiAPEnable'] == 1) {
|
||||||
|
$client_iface = 'uap0';
|
||||||
|
} else {
|
||||||
|
$client_iface = RASPI_WIFI_CLIENT_INTERFACE;
|
||||||
|
}
|
||||||
|
exec('cat '.RASPI_DNSMASQ_LEASES.'| grep -E $(arp -i '.$client_iface.' | grep -oE "(([0-9]|[a-f]|[A-F]){2}:){5}([0-9]|[a-f]|[A-F]){2}" | tr "\n" "\|" | sed "s/.$//")', $clients);
|
||||||
foreach ($clients as $client) {
|
foreach ($clients as $client) {
|
||||||
$client_items = explode(' ', $client);
|
$client_items = explode(' ', $client);
|
||||||
echo '<tr>'.PHP_EOL;
|
echo '<tr>'.PHP_EOL;
|
||||||
|
|
Loading…
Reference in a new issue