From 04daff0608594a45af91d4934b9904d506fcf1d2 Mon Sep 17 00:00:00 2001 From: Floris Bruynooghe Date: Fri, 24 Mar 2023 11:13:58 +0100 Subject: [PATCH] Add comment --- src/imex/transfer.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/imex/transfer.rs b/src/imex/transfer.rs index 68ac08c64..d93cf4f6d 100644 --- a/src/imex/transfer.rs +++ b/src/imex/transfer.rs @@ -394,6 +394,9 @@ async fn get_backup_inner(context: &Context, qr: Qr) -> Result<()> { if ticket.addrs.is_empty() { bail!("ticket is missing addresses to dial"); } + + // Crude sorting, most local wifi's are in the 192.168.0.0/24 range so this will try + // them first. ticket.addrs.sort_by(|a, b| { let a = a.to_string(); let b = b.to_string();