From 6d66e725daf6cd10cdcdd0e41bb1c3647cad88b8 Mon Sep 17 00:00:00 2001 From: Stephen D <webmaster@scd31.com> Date: Thu, 7 Dec 2023 19:20:10 -0400 Subject: [PATCH] small routing to the internet fix --- src/util.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index bded3e2..bf07211 100644 --- a/src/util.rs +++ b/src/util.rs @@ -153,6 +153,7 @@ pub fn append_internet_to_packet_route( if let Some((rc, rs)) = first_future { if rc == callsign && rs == ssid { // we can just do the normal thing + // since we're replacing the existing future node, this should never fail, unless we run out of byte space route.append_node(callsign, ssid, Some(rssi)).ok()?; } else { // rip off all the futures and add ourselves @@ -174,7 +175,7 @@ pub fn append_internet_to_packet_route( route.push_callsign(RouteIdentity::new(callsign, ssid, Some(rssi), false)); } } else { - route.append_node(callsign, ssid, Some(rssi)).ok()?; + route.push_callsign(RouteIdentity::new(callsign, ssid, Some(rssi), false))?; } route.push_internet()?; -- GitLab