diff --git a/include/forti_api/system.hpp b/include/forti_api/system.hpp index a304a79..b2aa0b7 100644 --- a/include/forti_api/system.hpp +++ b/include/forti_api/system.hpp @@ -175,7 +175,7 @@ class APIUser { bool is_trusted(const std::string& subnet) { return std::any_of(trusthost.begin(), trusthost.end(), - [&subnet](std::shared_ptr host) { + [&subnet](const std::shared_ptr& host) { return host->get_subnet() == subnet; }); }