From bc33c0af64a2942bab3993ce326c68a2a601f638 Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Wed, 11 Mar 2026 13:43:11 -0600 Subject: [PATCH] Revert hops >= 1 to > 1 in Transport::outbound() The >= 1 change made the hops==1 branch (hub topology) convert packets to Header2 with potentially wrong transport_id before send_outgoing() could apply the correct learned hub transport_id. Reverting to > 1 matches the original Python logic and lets hops==1 packets fall through as Header1 for proper wrapping. --- src/Transport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Transport.cpp b/src/Transport.cpp index d9d1ae7..a2773a8 100644 --- a/src/Transport.cpp +++ b/src/Transport.cpp @@ -791,7 +791,7 @@ Transport::DestinationEntry empty_destination_entry; // This rule applies both for "normal" transport, and when connected // to a local shared Reticulum instance. //if Transport.destination_table[packet.destination_hash][2] > 1: - if (destination_entry._hops >= 1) { + if (destination_entry._hops > 1) { TRACE("Forwarding packet to next closest interface..."); if (packet.header_type() == Type::Packet::HEADER_1) { // Insert packet into transport