From a2da7ee9b5198a24657947b086c7531312833be8 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周日, 08 3月 2020 22:13:46 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/develop' 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