Commit d3e4b949 authored by Jan Möbius's avatar Jan Möbius

Revert,as non active means no cable attached

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10808 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 21664f27
......@@ -161,12 +161,6 @@ bool LicenseManager::authenticate() {
continue;
}
// Ignore offline interfaces
if ( ! ( netInterface.flags() & QNetworkInterface::IsUp ) ) {
std::cerr << "Not up" << std::endl;
continue;
}
// Ignore non ethernet macs
if ( netInterface.hardwareAddress().count(":") != 5 ) {
continue;
......@@ -179,13 +173,9 @@ bool LicenseManager::authenticate() {
macHashes.push_back(currentMac);
}
std::cerr << "Got " << macHashes.size() << " Interfaces" << std::endl;
// cleanup the list from duplicates (virtual interfaces on windows connected to an existing device ... )
macHashes.removeDuplicates();
std::cerr << "Got " << macHashes.size() << " Interfaces after cleanup" << std::endl;
// generate hashes
for (int i = 0 ; i < macHashes.size(); ++i )
macHashes[i] = QCryptographicHash::hash ( macHashes[i].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