From 01764f32387a20d28f887d9352a1d92968793497 Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Tue, 10 Nov 2026 04:14:12 -0700 Subject: [PATCH] lxmd: register its destination types with the shared instance --- crates/lxmf-tools/src/commands/lxmd.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crates/lxmf-tools/src/commands/lxmd.rs b/crates/lxmf-tools/src/commands/lxmd.rs index 91c758c..a30f393 100644 --- a/crates/lxmf-tools/src/commands/lxmd.rs +++ b/crates/lxmf-tools/src/commands/lxmd.rs @@ -5967,6 +5967,13 @@ pub(crate) async fn main() { let transport_tx = rns_handle.transport_tx.clone(); + if control_preflight.is_none() { + // LXMRouter.REQUIRED_DESTINATION_TYPES, registered as the router starts. + for destination_type in [DELIVERY_APP_NAME, "lxmf.propagation"] { + rns_handle.wants_destination_type(destination_type).await; + } + } + if let Some(preflight) = control_preflight { let identity = match Identity::from_file(&preflight.identity_path) { Ok(identity) => identity, @@ -6612,6 +6619,8 @@ pub(crate) async fn main() { } } + // Reticulum's exit handler deregisters this process's destination types. + rns_handle.unwants_all_destination_types().await; tracing::info!("LXMF Daemon stopped"); if let Some(status) = one_shot_status { std::process::exit(status);