From 7c84dd8bbaf5174515484dd0316d86eca59bd1dc Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Fri, 10 Jan 2025 16:18:34 +0100 Subject: [PATCH] fixup --- mullvad-daemon/src/leak_checker/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mullvad-daemon/src/leak_checker/mod.rs b/mullvad-daemon/src/leak_checker/mod.rs index 154a85ce9360..a0414c6e3e1d 100644 --- a/mullvad-daemon/src/leak_checker/mod.rs +++ b/mullvad-daemon/src/leak_checker/mod.rs @@ -202,15 +202,13 @@ async fn check_for_leaks( // TODO: use route.interface_index? }; - // TODO (windows): - // Use default route monitor thingy. It should contain interfaces. - // Can maybe use callback to subscribe for updates - // get_best_route #[cfg(target_os = "windows")] let interface = { use std::net::IpAddr; use talpid_windows::net::AddressFamily; + let _ = route_manager; // don't need this on windows + let family = match destination.address.ip() { IpAddr::V4(..) => AddressFamily::Ipv4, IpAddr::V6(..) => AddressFamily::Ipv6,