mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Add unconfigured client state to dashboard.php
Add tun device as client_udev_prototypes.json
This commit is contained in:
@@ -198,9 +198,10 @@ function findCurrentClientIndex($clients)
|
||||
$ncl=$clients["clients"];
|
||||
if($ncl > 0) {
|
||||
$ty=-1;
|
||||
foreach($clients["device"] as $i => $dev) {
|
||||
if(($id=array_search($dev["type"], $_SESSION["net-device-types"])) > $ty && !$dev["isAP"]) {
|
||||
$ty=$id;
|
||||
foreach($clients["device"] as $i => $dev) {
|
||||
$id=array_search($dev["type"],$_SESSION["net-device-types"]);
|
||||
if($id >=0 && $_SESSION["udevrules"]["network_devices"][$id]["clientid"] > $ty && !$dev["isAP"]) {
|
||||
$ty=$id;
|
||||
$devid=$i;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user