autocore: skip virtual ethernet

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen 2023-01-18 02:38:30 +08:00
parent f5d69cebd6
commit 06072d17fa
No known key found for this signature in database
GPG Key ID: 6850B6345C862176

View File

@ -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;