Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe committed Jan 10, 2025
1 parent cff752a commit 7c84dd8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions mullvad-daemon/src/leak_checker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7c84dd8

Please sign in to comment.