mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-22 23:10:38 +00:00
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:
1 parent
184e6b0250
commit
bc33c0af64
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user