From 584595ff2fc9fae0020997bdb57738a4d899155c Mon Sep 17 00:00:00 2001 From: Mat Sutcliffe Date: Thu, 17 Dec 2020 20:24:01 +0000 Subject: [PATCH] UUID in DB client ping should uniquely identify the client machine --- src/blackcore/data/globalsetup.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/blackcore/data/globalsetup.cpp b/src/blackcore/data/globalsetup.cpp index 70a15225e..6580d6c5b 100644 --- a/src/blackcore/data/globalsetup.cpp +++ b/src/blackcore/data/globalsetup.cpp @@ -19,6 +19,7 @@ #include #include +#include #include #include @@ -168,11 +169,7 @@ namespace BlackCore CUrl pingUrl = this->getDbClientPingServiceUrl(); if (pingUrl.isEmpty()) { CUrl(); } - QString uuid = this->identifier().toUuidString(); - uuid.remove('{'); - uuid.remove('}'); - - pingUrl.appendQuery("uuid", uuid); + pingUrl.appendQuery("uuid", QSysInfo::machineUniqueId()); if (type.testFlag(PingLogoff)) { pingUrl.appendQuery("logoff", "true"); } if (type.testFlag(PingShutdown)) { pingUrl.appendQuery("shutdown", "true"); } if (type.testFlag(PingStarted)) { pingUrl.appendQuery("started", "true"); }