Prepared announce filtering

This commit is contained in:
Mark Qvist committed 2026-11-01 23:14:03 +01:00
1 parent 2c69fd3684
commit 810c345de8
1 file changed
+4
+4
View File
@@ -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