simple_repeater: filter hash -- runtime deny-forward podle hashe kanálu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a79860e9c9
commit
4ca0850369
4 files changed
+113
No files matched your search
@@ -77,6 +77,10 @@ public:
|
||||
// just leave them at defaults.
|
||||
uint8_t fairness_enabled = 0; // FairnessLimiter runtime kill switch
|
||||
char filter_deny[128]; // channel-filter deny list, comma-separated node names
|
||||
// channel hashes (payload[0] of GRP_TXT/GRP_DATA) this node refuses to forward,
|
||||
// keyless -- works on private channels too. See ChannelFilter.h (`filter hash`).
|
||||
uint8_t deny_hash[8];
|
||||
uint8_t deny_hash_n = 0;
|
||||
// Battery state as an icon on the advertised name (see BatteryIcon.h).
|
||||
// Off by default: it costs bytes of the name, so it has to be asked for.
|
||||
uint8_t batt_icon = 0; // boolean
|
||||
@@ -204,6 +208,8 @@ private:
|
||||
def("loop", _parent->loop_detect);
|
||||
def("fair_en", _parent->fairness_enabled);
|
||||
def("f_deny", _parent->filter_deny, sizeof(_parent->filter_deny));
|
||||
def("f_dhash", (void*)_parent->deny_hash, sizeof(_parent->deny_hash));
|
||||
def("f_dhash_n", _parent->deny_hash_n);
|
||||
def("fair_gcap", _parent->fair_group_cap);
|
||||
def("fair_scap", _parent->fair_sender_cap);
|
||||
def("fair_acap", _parent->fair_advert_cap);
|
||||
@@ -256,6 +262,7 @@ public:
|
||||
bridge_secret[0] = 0;
|
||||
owner_info[0] = 0;
|
||||
filter_deny[0] = 0;
|
||||
memset(deny_hash, 0, sizeof(deny_hash));
|
||||
}
|
||||
|
||||
CommonRadioPrefs* getRadioPrefs() { return &radio; }
|
||||
|
||||
Reference in new issue
Block a user