Commit 22b51ada authored by Jan Möbius's avatar Jan Möbius

Debug output

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10803 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 0b70b575
......@@ -135,15 +135,28 @@ bool LicenseManager::authenticate() {
// 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) {
if ( !( netInterface.flags() & QNetworkInterface::IsLoopBack ) ) {
std::cerr << "Loopback" << std::endl;
std::cerr << "Got MAC: " << netInterface.humanReadableName().toStdString() << " " << netInterface.hardwareAddress().toStdString() << std::endl;
macHashes.push_back(netInterface.hardwareAddress().toAscii().toUpper());
}
mac = mac + netInterface.hardwareAddress().remove(":");
}
std::cerr << "Got " << macHashes.size() << " macs" << std::endl;
macHashes.removeDuplicates();
std::cerr << "Got " << macHashes.size() << " macs after cleanup" << std::endl;
for (uint i = 0 ; i < macHashes.size(); ++i ) {
std::cerr << "Got mac : " << macHashes[i].toStdString() << std::endl;
}
QString macHash = QCryptographicHash::hash ( mac.toAscii() , QCryptographicHash::Sha1 ).toHex();
......
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