From 8d405b265285c368df2e9cf1c14acee7532e0ee7 Mon Sep 17 00:00:00 2001
From: nancy.liao <huihui.liao@greentest.com.cn>
Date: 摹曛, 29 5月 2025 18:14:38 +0800
Subject: [PATCH] Merge branch 'develop' of http://139.9.88.116:3000/r/module/open-license-manager into develop

---
 doc/api/hardware_identifiers.rst |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/doc/api/hardware_identifiers.rst b/doc/api/hardware_identifiers.rst
index 4c41395..840c520 100644
--- a/doc/api/hardware_identifiers.rst
+++ b/doc/api/hardware_identifiers.rst
@@ -2,10 +2,23 @@
 Customize hardware signature generators 
 ###############################################
 
-Customize how default strategy behaves
-*****************************************
+Change the hardware identification strategy
+*************************************************
+
+Included with the library there are three hardware identification strategies: `IP_ADDRESS`, `STRATEGY_ETHERNET` (mac address) and 
+`STRATEGY_DISK` (partition serial number). If you want to change the strategy that is used to generate the default identifier:
+  
+  - locate the file `licensecc_properties.h`` (usually in ``projects/<$project_name>/include/licensecc/<$project_name>``
+  - you can change the order of the strategies in the following code block (the strategies will be tried in sequence until the first one succeeds):
+
+.. code-block:: c
+#define LCC_BARE_TO_METAL_STRATEGIES { STRATEGY_DISK, STRATEGY_ETHERNET, STRATEGY_NONE }
+#define LCC_VM_STRATEGIES { STRATEGY_ETHERNET, STRATEGY_NONE }
+#define LCC_LXC_STRATEGIES { STRATEGY_ETHERNET, STRATEGY_NONE }
+#define LCC_DOCKER_STRATEGIES { STRATEGY_NONE }
+#define LCC_CLOUD_STRATEGIES { STRATEGY_NONE }
 
 Implement your own hardware signature generator 
 *************************************************
 
-.. doxygenclass:: license::hw_identifier::IdentificationStrategy
\ No newline at end of file
+.. doxygenclass:: license::hw_identifier::IdentificationStrategy

--
Gitblit v1.9.1