Handling of USB tethering (Android phone) improved

This commit is contained in:
Christian Zeitnitz
2021-03-18 18:20:52 +01:00
parent 159e3674e5
commit ac16d67609
3 changed files with 16 additions and 5 deletions

View File

@@ -154,6 +154,7 @@ function DisplayDashboard(&$extraFooterScripts)
$ifaceStatus = $clientinfo["connected"]=="y" ? "up" : "down";
switch($clientinfo["type"]) {
case "eth":
case "usb":
$client_title = "Client: Ethernet cable";
$type_name = "Ethernet";
break;

View File

@@ -137,6 +137,8 @@ function getClients($simple=true) {
$cl["device"][$i]["operator"] = $res[0];
break;
case "phone":
case "usb":
$cl["device"][$i]["connected"] = "y";
break;
default:
}