mirror of
https://github.com/lumapu/ahoy.git
synced 2025-08-06 01:48:19 +02:00
0.8.77
* merge PR: BugFix: ACK #1414 * fix suspicious if condition #1416 * prepared API token for access, not functional #1415
This commit is contained in:
parent
d4a4f9cfb6
commit
15349520d2
9 changed files with 98 additions and 23 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue