1
0
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:
Bryan Roe
2020-04-24 21:10:32 -07:00
parent 26e48ff044
commit 55a832ba33
2 changed files with 3 additions and 3 deletions

View File

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