Skip to content

Commit

Permalink
fix: 新增 vEthernet 虚拟网卡关键字
Browse files Browse the repository at this point in the history
  • Loading branch information
renxia committed Dec 25, 2023
1 parent 8728289 commit 0973735
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,17 @@ export function isVirtualMac(mac: string, desc?: string) {
}

if (desc && !isVirtual) {
const virtualDescList = ['virtual', ' vpn ', ' ssl ', 'tap-windows', 'hyper-v', 'km-test', 'microsoft loopback', 'sangfor '];
const virtualDescList = [
'virtual',
' vpn ',
' ssl ',
'tap-windows',
'hyper-v',
'vEthernet', // vEthernet (Default Switch)
'km-test',
'microsoft loopback',
'sangfor ',
];
desc = String(desc).toLowerCase();
isVirtual = virtualDescList.some(d => desc.includes(d));
}
Expand Down

0 comments on commit 0973735

Please sign in to comment.