mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-27 21:53:20 +00:00
Fixed bug with Xen/AWS detection
This commit is contained in:
@@ -216,13 +216,14 @@ module.exports.isVM = function isVM()
|
||||
{
|
||||
case 'VMware, Inc.':
|
||||
case 'QEMU':
|
||||
case 'Xen':
|
||||
ret = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (id.identifiers.bios_vendor && id.identifiers.bios_vendor == 'VMware, Inc.') { ret = true; }
|
||||
if (id.identifiers.bios_vendor && (id.identifiers.bios_vendor == 'VMware, Inc.' || id.identifiers.bios_vendor == 'Xen')) { ret = true; }
|
||||
if (id.identifiers.board_vendor && id.identifiers.board_vendor == 'VMware, Inc.') { ret = true; }
|
||||
if (id.identifiers.board_name)
|
||||
{
|
||||
@@ -231,7 +232,6 @@ module.exports.isVM = function isVM()
|
||||
case 'VirtualBox':
|
||||
case 'Virtual Machine':
|
||||
case 'SeaBIOS':
|
||||
case 'Xen':
|
||||
ret = true;
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user