From 0a846e45c46844eee2f26fd850403d6da20b15e6 Mon Sep 17 00:00:00 2001 From: Ivan Chvets Date: Tue, 19 Mar 2024 10:41:24 -0400 Subject: [PATCH] fix: reverting change Signed-off-by: Ivan Chvets --- src/DeviceTypeCache.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/DeviceTypeCache.h b/src/DeviceTypeCache.h index 6300c38..a4e33cd 100644 --- a/src/DeviceTypeCache.h +++ b/src/DeviceTypeCache.h @@ -37,13 +37,10 @@ namespace OpenWifi { inline void onTimer([[maybe_unused]] Poco::Timer &timer) { UpdateDeviceTypes(); } inline bool IsAcceptableDeviceType(const std::string &D) const { - return true; - //return (DeviceTypes_.find(D) != DeviceTypes_.end()); + return (DeviceTypes_.find(D) != DeviceTypes_.end()); }; inline bool AreAcceptableDeviceTypes(const Types::StringVec &S, bool WildCardAllowed = true) const { - return true; - /* for (const auto &i : S) { if (WildCardAllowed && i == "*") { // We allow wildcards @@ -51,7 +48,6 @@ namespace OpenWifi { return false; } return true; - */ } private: