mirror of
https://github.com/markqvist/LXMF
synced 2026-11-22 23:10:36 +00:00
Prepared announce filtering
This commit is contained in:
1 file changed
+4
@@ -99,6 +99,7 @@ class LXMRouter:
|
||||
SYNC_REQUEST_PATH = "/pn/peer/sync"
|
||||
UNPEER_REQUEST_PATH = "/pn/peer/unpeer"
|
||||
|
||||
REQUIRED_DESTINATION_TYPES = [f"{APP_NAME}.delivery", f"{APP_NAME}.propagation"]
|
||||
|
||||
### Developer-facing API ##############################
|
||||
#######################################################
|
||||
@@ -196,6 +197,9 @@ class LXMRouter:
|
||||
self.incoming_delivery_resource_lock = threading.Lock()
|
||||
self.exit_handler_running = False
|
||||
|
||||
for destination_type in self.REQUIRED_DESTINATION_TYPES:
|
||||
RNS.Reticulum.get_instance().wants_destination_type(destination_type)
|
||||
|
||||
if identity == None: identity = RNS.Identity()
|
||||
|
||||
self.identity = identity
|
||||
|
||||
Reference in new issue
Block a user