mirror of
https://github.com/markqvist/NomadNet.git
synced 2026-11-24 17:06:20 -05:00
Prepared announce filtering
This commit is contained in:
parent
1f477ca8cf
commit
22cd7ceff3
3 changed files with 15 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue