Commit 1d37fe5c authored by Jan Möbius's avatar Jan Möbius

Debug output

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10801 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 837f5afe
......@@ -129,14 +129,23 @@ bool LicenseManager::authenticate() {
// ===============================================================================================
QString mac;
QStringList macHashes;
// Get all Network Interfaces
QList<QNetworkInterface> 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment