networkInterfaces() fixed speed of not connected interfaces (windows)
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user