diff --git a/LicenseManager/LicenseManager.cc b/LicenseManager/LicenseManager.cc index 364604eba2a57cd3d361db4a770c0c2d9d36139e..28040c779ee403210a87518b6393935fe6b1b928 100644 --- a/LicenseManager/LicenseManager.cc +++ b/LicenseManager/LicenseManager.cc @@ -129,14 +129,23 @@ bool LicenseManager::authenticate() { // =============================================================================================== QString mac; + + QStringList macHashes; // Get all Network Interfaces QList interfaces = QNetworkInterface::allInterfaces(); foreach ( QNetworkInterface netInterface, interfaces ) { + std::cerr << "Got MAC: " << netInterface.humanReadableName().toStdString() << " " << netInterface.hardwareAddress().toStdString() << std::endl; + + if ( netInterface.flags() & QNetworkInterface::IsLoopBack) { + std::cerr << "Loopback" << std::endl; + } + mac = mac + netInterface.hardwareAddress().remove(":"); + } - QString macHash = QCryptographicHash::hash ( mac.toAscii() , QCryptographicHash::Sha1 ).toHex(); + QString macHash = QCryptographicHash::hash ( mac.toAscii() , QCryptographicHash::Sha1 ).toHex(); // =============================================================================================== // Compute hash of processor information