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.
This commit is contained in:
DeFiDude committed 2026-03-11 13:43:11 -06:00
1 parent 184e6b0250
commit bc33c0af64
1 file changed
+1 -1
+1 -1
View File
@@ -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