Skip to content

Commit

Permalink
Add log_tunnel_data_usage to Android too
Browse files Browse the repository at this point in the history
  • Loading branch information
Serock3 committed Dec 20, 2024
1 parent ed10ac2 commit 6c6a822
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions talpid-wireguard/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -472,15 +472,23 @@ impl WireguardMonitor {
if should_negotiate_ephemeral_peer {
let ephemeral_obfs_sender = close_obfs_sender.clone();

ephemeral::config_ephemeral_peers(
if let Err(e) = ephemeral::config_ephemeral_peers(
&tunnel,
&mut config,
args.retry_attempt,
obfuscator.clone(),
ephemeral_obfs_sender,
args.tun_provider,
)
.await?;
.await
{
// We have received a small amount of reports about ephemeral peer nogationation
// timing out on Windows for 2024.9-beta1. These verbose data usage logs are
// a temporary measure to help us understand the issue. They can be removed
// if the issue is resolved.
log_tunnel_data_usage(&config, &tunnel).await;
return Err(e);
}

let metadata = Self::tunnel_metadata(&iface_name, &config);
event_hook
Expand Down

0 comments on commit 6c6a822

Please sign in to comment.