diff options
Diffstat (limited to 'workspace/LogReceiver/logreceiver.cpp')
| -rw-r--r-- | workspace/LogReceiver/logreceiver.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/workspace/LogReceiver/logreceiver.cpp b/workspace/LogReceiver/logreceiver.cpp index 82d24a2..30a29e7 100644 --- a/workspace/LogReceiver/logreceiver.cpp +++ b/workspace/LogReceiver/logreceiver.cpp @@ -141,7 +141,8 @@ QList<QNetworkInterface> LogReceiver::getListOfNetworkInterfaces() { foreach(QNetworkInterface nI, nIList) { if (((!(nI.flags() & QNetworkInterface::CanBroadcast)|| nI.flags() & QNetworkInterface::IsLoopBack) || - nI.flags() & QNetworkInterface::IsPointToPoint)) + nI.flags() & QNetworkInterface::IsPointToPoint) || + checkBlackList(nI.humanReadableName())) { continue; } @@ -256,4 +257,14 @@ void LogReceiver::handleProgress(int iFaceIndex, int newValue) { } } -int LogReceiver::checkBlackList() +bool LogReceiver::checkBlackList(QString i) { + if (i.startsWith("v", Qt::CaseInsensitive)) { + return true; + } + else if(i.startsWith("d", Qt::CaseInsensitive)) { + return true; + } + else { + return false; + } +} |
