Skip to content

Commit

Permalink
Log DAITA v2 request
Browse files Browse the repository at this point in the history
  • Loading branch information
dlon committed Jan 16, 2025
1 parent dfc6339 commit a51b295
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions talpid-tunnel-config-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,13 @@ pub async fn request_ephemeral_peer_with(
wg_ephemeral_peer_pubkey: ephemeral_pubkey.as_bytes().to_vec(),
post_quantum: pq_request,
daita: None,
daita_v2: enable_daita.then(|| proto::DaitaRequestV2 {
level: i32::from(proto::DaitaLevel::LevelDefault),
platform: i32::from(get_platform()),
version: DAITA_VERSION,
daita_v2: enable_daita.then(|| {
log::trace!("Sending DAITA v2 request");
proto::DaitaRequestV2 {
level: i32::from(proto::DaitaLevel::LevelDefault),
platform: i32::from(get_platform()),
version: DAITA_VERSION,
}
}),
})
.await
Expand Down

0 comments on commit a51b295

Please sign in to comment.