* merge PR: BugFix: ACK #1414
* fix suspicious if condition #1416
* prepared API token for access, not functional #1415
This commit is contained in:
lumapu 2024-02-09 00:05:54 +01:00
parent d4a4f9cfb6
commit 15349520d2
9 changed files with 98 additions and 23 deletions

View file

@ -251,8 +251,8 @@ class app : public IApp, public ah::Scheduler {
mProtection->lock();
}
void unlock(const char *clientIp) override {
mProtection->unlock(clientIp);
char *unlock(const char *clientIp) override {
return mProtection->unlock(clientIp);
}
void resetLockTimeout(void) override {
@ -267,6 +267,10 @@ class app : public IApp, public ah::Scheduler {
return mProtection->isProtected(clientIp);
}
bool isProtected(const char *clientIp, const char *token) const override {
return mProtection->isProtected(clientIp, token);
}
bool getNrfEnabled(void) override {
return mConfig->nrf.enabled;
}