From d0b85cf10415a378c11d385066bb27116f2c2df1 Mon Sep 17 00:00:00 2001
From: Shahar Hadas <shaharhd@gmail.com>
Date: 周日, 10 5月 2020 19:18:01 +0800
Subject: [PATCH] Fix network detection for Windows OS (#94)

---
 src/inspector/inspector.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/inspector/inspector.cpp b/src/inspector/inspector.cpp
index 1c4d0af..40cd281 100644
--- a/src/inspector/inspector.cpp
+++ b/src/inspector/inspector.cpp
@@ -26,6 +26,7 @@
 													 {V_XEN, "XEN"},
 													 {KVM, "KVM"},
 													 {HV, "Microsoft Hypervisor"},
+													 {PARALLELS, "Parallels Desktop"},
 													 {V_OTHER, "Other type of vm"}};
 
 const unordered_map<int, string> descByVirt = {{LCC_API_VIRTUALIZATION_SUMMARY::NONE, "No virtualization"},
@@ -69,7 +70,7 @@
 	for (CSimpleIniA::Entry section : sections) {
 		const string section_name(section.pItem, 15);
 		if (section_name != LCC_PROJECT_NAME) {
-			std::copy(section_name.begin(), section_name.end(), callerInformation.project_name);
+			std::copy(section_name.begin(), section_name.end(), callerInformation.feature_name);
 			LCC_EVENT_TYPE result = acquire_license(&callerInformation, &licLocation, &licenseInfo);
 			if (result == LICENSE_OK) {
 				cout << "project [" << section.pItem << "]: license OK" << endl;

--
Gitblit v1.9.1