From cd091604d24a443ce105e8786ed5ead7887d4e71 Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Sun, 25 Oct 2026 07:07:50 -0600 Subject: [PATCH] management: refuse Resources on remote management Links, as Python does --- CHANGELOG.md | 1 + crates/rns-runtime/src/remote_management.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57754bd..e5e26ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,7 @@ - An interface counts a path request in its stats only once its tag passes the duplicate check, as in Python Reticulum 1.5. - A realtime Link packet dropped at a full transmit queue counts toward the interface's dropped bytes. - `rnpath -R` filters the remote path and rate tables as Python Reticulum compares them: a destination hash of another length matches nothing, and the hop limit compares as a number instead of wrapping above 255. +- Remote management Links refuse Resources other than requests and responses, as Python Reticulum's do. ## 1.4.0 - 2026-10-12 diff --git a/crates/rns-runtime/src/remote_management.rs b/crates/rns-runtime/src/remote_management.rs index 4a607f1..0b046d2 100644 --- a/crates/rns-runtime/src/remote_management.rs +++ b/crates/rns-runtime/src/remote_management.rs @@ -59,6 +59,8 @@ pub(crate) async fn start_remote_management_with_stats( app_name, Some(signing_key), ); + // Python's management Links take the Link default (Link.py:239). + lm.set_resource_strategy(rns_link::link::ResourceStrategy::AcceptNone); let status_hash: [u8; 16] = truncated_hash(STATUS_PATH.as_bytes()); let paths_hash: [u8; 16] = truncated_hash(PATH_PATH.as_bytes());