From 75e4394d720c9cf8039a5e07110322c2b55bce8c Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周日, 08 3月 2020 21:45:16 +0800
Subject: [PATCH] Merge branch 'feature/pc_identifiers' of https://github.com/open-license-manager/open-license-manager.git into feature/pc_identifiers

---
 src/library/os/execution_environment.hpp |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/library/os/execution_environment.hpp b/src/library/os/execution_environment.hpp
index bc503fb..db36205 100644
--- a/src/library/os/execution_environment.hpp
+++ b/src/library/os/execution_environment.hpp
@@ -13,6 +13,12 @@
 namespace license {
 namespace os {
 
+/*
+ * windows bios sometimes reports vm names add execution environment detection from bios
+const char *vmVendors[] = {
+	"VMware", "Microsoft Corporation", "Virtual Machine", "innotek GmbH", "PowerVM", "Bochs", "KVM"};
+*/
+
 typedef enum { NONE, CONTAINER, VM } VIRTUALIZATION;
 
 typedef enum {
@@ -35,8 +41,9 @@
 	std::string sys_vendor;
 	std::string bios_vendor;
 	std::string bios_description;
-	//detect if it's a kind of container technology (docker or lxc)
+	// detect if it's a kind of container technology (docker or lxc)
 	bool is_container() const;
+
 public:
 	ExecutionEnvironment();
 	~ExecutionEnvironment(){};

--
Gitblit v1.9.1