refactor: do not return true when checking physical ip is private or not return if a was private
This commit is contained in:
@ -89,7 +89,7 @@ QStringList NetworkMonitor::getAvailableIPv4Addresses() const
|
||||
|
||||
std::ranges::sort(physicalIPs, [](const QHostAddress &a, const QHostAddress &b) {
|
||||
if (a.isPrivateUse() != b.isPrivateUse())
|
||||
return true;
|
||||
return a.isPrivateUse();
|
||||
return a.toIPv4Address() < b.toIPv4Address();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user