Skip to content

Commit 710d496

Browse files
committed
fix: Fix rustdesk remote management version analysis
Closes #609
1 parent fa2d4e7 commit 710d496

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Changes

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ inventory:
1919
* Update glpi-agent script with --full-inventory-postpone option support
2020
* Update glpi-agent script with --full option support to force a full inventory
2121
* fix #611: Wrong bios value as array on win32 bios when using WMI in proxmox vm
22+
* fix #609: Fix rustdesk remote management version analysis
2223

2324
netdiscovery/netinventory:
2425
* Keep device mac address found via snmp during netdiscovery as this is the one

lib/GLPI/Agent/Task/Inventory/Generic/Remote_Mgmt/RustDesk.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ sub doInventory {
4545
command => $command." --version",
4646
logger => $logger
4747
);
48-
if ($version && $version =~ /^(\d+)\.(\d+)\.(\d+)$/) {
48+
if ($version && $version =~ /^(\d+)\.(\d+)\.(\d+)/) {
4949
$required = int($1) > 1 || (int($1) == 1 && int($2) > 2) || (int($1) == 1 && int($2) == 2 && int($3) >= 2) ? 0 : 1;
5050
}
5151
if ($required) {

0 commit comments

Comments
 (0)