refactor ClientACL and CommonCLI, add ClientACL::clear()

This commit is contained in:
taco
2026-01-25 01:31:53 +11:00
والد 3c27132914
کامیت 6336bd5b72
9فایلهای تغییر یافته به همراه25 افزوده شده و 9 حذف شده
+2
مشاهده پرونده
@@ -36,6 +36,7 @@ struct ClientInfo {
#endif
class ClientACL {
FILESYSTEM* _fs;
ClientInfo clients[MAX_CLIENTS];
int num_clients;
@@ -46,6 +47,7 @@ public:
}
void load(FILESYSTEM* _fs);
void save(FILESYSTEM* _fs, bool (*filter)(ClientInfo*)=NULL);
bool clear();
ClientInfo* getClient(const uint8_t* pubkey, int key_len);
ClientInfo* putClient(const mesh::Identity& id, uint8_t init_perms);