autocore: skip virtual ethernet
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
parent
f5d69cebd6
commit
06072d17fa
@ -14,7 +14,7 @@ if (!stat) {
|
||||
|
||||
let eth_info = [];
|
||||
for (let ifname in stat) {
|
||||
if (!ifname || stat[ifname]?.devtype !== 'ethernet')
|
||||
if (!ifname || stat[ifname]?.devtype !== 'ethernet' || !length(stat[ifname]['link-advertising']))
|
||||
continue;
|
||||
|
||||
let status, speed, duplex;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user