Skip to content

Commit

Permalink
fixup: windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hulthe committed Dec 16, 2024
1 parent bf49b28 commit 6f59edc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions mullvad-daemon/src/leak_checker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use anyhow::anyhow;
use futures::{select, FutureExt};
use leak_checker::traceroute::TracerouteOpt;
pub use leak_checker::LeakInfo;
use mullvad_types::TUNNEL_FWMARK;
use std::net::IpAddr;
use std::time::Duration;
use talpid_routing::RouteManagerHandle;
Expand Down Expand Up @@ -170,7 +169,7 @@ async fn check_for_leaks(
#[cfg(target_os = "linux")]
let interface = {
let Ok(Some(route)) = route_manager
.get_destination_route(destination, Some(TUNNEL_FWMARK))
.get_destination_route(destination, Some(mullvad_types::TUNNEL_FWMARK))
.await
else {
todo!("no route to relay?");
Expand Down Expand Up @@ -199,7 +198,7 @@ async fn check_for_leaks(
// Use default route monitor thingy. It should contain interfaces.
// Can maybe use callback to subscribe for updates
// get_best_route
#[cfg(target_os = "macos")]
#[cfg(target_os = "windows")]
let interface: &str = todo!("get default interface");

log::debug!("attempting to leak traffic on interface {interface:?} to {destination}");
Expand Down
2 changes: 1 addition & 1 deletion talpid-core/src/tunnel_state_machine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ impl TunnelStateMachine {
args.resource_dir.clone(),
args.command_tx.clone(),
volume_update_rx,
route_manager.clone(),
args.route_manager.clone(),
)
.map_err(Error::InitSplitTunneling)?;

Expand Down

0 comments on commit 6f59edc

Please sign in to comment.