Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
Signed-off-by: acapparelli1 <[email protected]>
  • Loading branch information
acapparelli1 authored and Ivan Chvets committed Mar 19, 2024
1 parent 9412c00 commit 01b1107
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/DeviceTypeCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,21 @@ namespace OpenWifi {
inline void onTimer([[maybe_unused]] Poco::Timer &timer) { UpdateDeviceTypes(); }

inline bool IsAcceptableDeviceType(const std::string &D) const {
return (DeviceTypes_.find(D) != DeviceTypes_.end());
return true;
//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
} else if (DeviceTypes_.find(i) == DeviceTypes_.end())
return false;
}
return true;
*/
}

private:
Expand Down

0 comments on commit 01b1107

Please sign in to comment.