Prepared announce filtering

This commit is contained in:
Mark Qvist 2026-11-01 21:49:54 +01:00
parent 1f477ca8cf
commit 22cd7ceff3
No known key found for this signature in database
3 changed files with 15 additions and 1 deletions

View file

@ -36,6 +36,8 @@ class NomadNetworkApp:
START_ANNOUNCE_DELAY = 3
REQUIRED_DESTINATION_TYPES = ["nomadnetwork.node", "lxmf.delivery", "lxmf.propagation", "rrc.hub"]
def exit_handler(self):
self.should_run_jobs = False
@ -103,6 +105,9 @@ class NomadNetworkApp:
NomadNetworkApp._shared_instance = self
self.rns = RNS.Reticulum(configdir = rnsconfigdir)
# self.rns.required_announces_only(True)
for full_name in self.REQUIRED_DESTINATION_TYPES:
self.rns.wants_destination_type(full_name)
self.configpath = self.configdir+"/config"
self.ignoredpath = self.configdir+"/ignored"