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: