feat: Add get network message by device name.
This commit is contained in:
@@ -57,7 +57,7 @@ void NetworkManager::initNetworkInfo()
|
||||
QList<QNetworkInterface> interfaces = QNetworkInterface::allInterfaces();
|
||||
for (const QNetworkInterface &interface : interfaces)
|
||||
{
|
||||
if (!(interface.flags() & QNetworkInterface::IsLoopBack))
|
||||
if (!(interface.flags() & QNetworkInterface::IsLoopBack) && interface.name() == mDeviceName)
|
||||
{
|
||||
QList<QNetworkAddressEntry> entries = interface.addressEntries();
|
||||
for (const QNetworkAddressEntry &entry : entries)
|
||||
|
||||
Reference in New Issue
Block a user