networkInterfaces() fixed speed of not connected interfaces (windows)

This commit is contained in:
Sebastian Hildebrandt
2024-03-19 08:17:26 +01:00
parent f89b82ddde
commit 8f4b013b63
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -1033,7 +1033,7 @@ function networkInterfaces(callback, rescan, defaultString) {
ifaceName = detail.name;
dhcp = detail.dhcp;
operstate = detail.operstate;
speed = detail.speed;
speed = operstate === 'up' ? detail.speed : 0;
type = detail.type;
foundFirst = true;
}