refactor: do not return true when checking physical ip is private or not return if a was private
This commit is contained in:
parent
64c104a5c2
commit
611a3300ba
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ QStringList NetworkMonitor::getAvailableIPv4Addresses() const
|
||||||
|
|
||||||
std::ranges::sort(physicalIPs, [](const QHostAddress &a, const QHostAddress &b) {
|
std::ranges::sort(physicalIPs, [](const QHostAddress &a, const QHostAddress &b) {
|
||||||
if (a.isPrivateUse() != b.isPrivateUse())
|
if (a.isPrivateUse() != b.isPrivateUse())
|
||||||
return true;
|
return a.isPrivateUse();
|
||||||
return a.toIPv4Address() < b.toIPv4Address();
|
return a.toIPv4Address() < b.toIPv4Address();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue