From 8553a8d63f97cfa8d64b5b2260e81f8c896a8398 Mon Sep 17 00:00:00 2001 From: nancy.liao <huihui.liao@greentest.com.cn> Date: 周五, 23 5月 2025 18:36:03 +0800 Subject: [PATCH] 修改部分因为标准原因的报错 --- doc/api/extend.rst | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/api/extend.rst b/doc/api/extend.rst index 2521a92..d7cd17d 100644 --- a/doc/api/extend.rst +++ b/doc/api/extend.rst @@ -21,19 +21,18 @@ ============================================ Included with the library there are three hardware identification strategies: `IP_ADDRESS`, `STRATEGY_ETHERNET` (mac address) and -`STRATEGY_ETHERNET` (partition serial number). If you want to change the preferred one: +`STRATEGY_DISK` (partition serial number). If you want to change the preferred one: - 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 +.. code-block:: c #define LCC_BARE_TO_METAL_STRATEGIES { STRATEGY_ETHERNET, 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 } - Custom license locator -- Gitblit v1.9.1