mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
Switch to efficient algorithm
This commit is contained in:
parent
c58aa58cba
commit
d6adebe4c0
3 changed files with 7 additions and 11 deletions
|
@ -702,7 +702,7 @@ QVector<Utils::Net::Subnet> Preferences::getWebUiAuthSubnetWhitelist() const
|
|||
|
||||
void Preferences::setWebUiAuthSubnetWhitelist(QStringList subnets)
|
||||
{
|
||||
Algorithm::removeIf(subnets, [](const QString &subnet)
|
||||
subnets.removeIf([](const QString &subnet)
|
||||
{
|
||||
return !Utils::Net::parseSubnet(subnet.trimmed()).has_value();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue