feat(repeater): antispam — FairnessLimiter (port #1502) + kanálový deny list

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
tthandClaude Fable 5 committed 2026-09-05 21:35:36 +02:00
1 parent de5bd52bd9
commit 6f90c80dcc
15 files changed
+1098 -112

No files matched your search

+13
View File
@@ -19,6 +19,17 @@ extra_configs =
[secrets]
ble_pin = 123456
; CUSTOM (TeTeHacko): channels the ChannelFilter deny list applies to
; (examples/simple_repeater/ChannelFilter.h). These keys are PUBLIC by
; construction, not secrets: hashtag channels derive key = SHA256(name)[:16]
; (anyone joins #meshcore by typing the name), and the Public channel key is
; the globally published izOH6cXN6mrJ5e26oRXNcg==. Derivation verified live
; 5. 9. 2026: SHA256("#meshcore")[:16] hashes to channel byte 0xEF, matching
; the on-air packets. Order: #meshcore, Public, #test.
[channel_filter]
build_flags =
-D FILTER_CHANNEL_PSKS='"2fa78a5aef618e7c2a78f0ab5c8869b3,8b3387e9c5cdea6ac9e5edbaa115cd72,9cd8fcf22a47333b591d96a2b848b73f"'
[arduino_base]
framework = arduino
monitor_speed = 115200
@@ -185,6 +196,7 @@ build_src_filter =
+<../src/Packet.cpp>
+<../src/helpers/ConfigSerializer.cpp>
+<../src/helpers/DynamicConfigSerializer.cpp>
+<../src/helpers/FairnessLimiter.cpp>
lib_deps =
google/googletest @ 1.17.0
@@ -223,6 +235,7 @@ build_src_filter =
+<../src/Packet.cpp>
+<../src/helpers/ConfigSerializer.cpp>
+<../src/helpers/DynamicConfigSerializer.cpp>
+<../src/helpers/FairnessLimiter.cpp>
lib_deps =
google/googletest @ 1.17.0