From a574e2f2411b42dc3e7d1528045a8d759943f9dd Mon Sep 17 00:00:00 2001 From: diegoara96 Date: Fri, 10 Jul 2020 22:22:37 +0200 Subject: [PATCH] Changed Mac detection --- SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs b/SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs index 31cb5d34..4e6a8522 100644 --- a/SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs +++ b/SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs @@ -42,7 +42,7 @@ namespace SafeExamBrowser.SystemComponents if (macAddress != null && macAddress.Count() > 2) { - isVirtualMachine |= ((byte.Parse(macAddress[1].ToString(), NumberStyles.HexNumber) & 2) == 2 || macAddress.StartsWith("080027")); + isVirtualMachine |= (macAddress.StartsWith("525400") || macAddress.StartsWith("080027")); } foreach (var device in plugAndPlayDeviceIds)