Skip to content

Commit

Permalink
bump version of boringtun
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Karl committed Sep 15, 2023
1 parent c8a86e9 commit b56134f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 24 deletions.
32 changes: 11 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ itertools = "0.11.0"

#wireguard
wireguard-uapi = "3"
boringtun = "0.5"
x25519-dalek = "2.0.0-pre.1"
boringtun = { git = "https://github.com/cloudflare/boringtun.git", rev = "e1d6360d6ab4529fc942a078e4c54df107abe2ba"}
x25519-dalek = "2.0.0"

# grpc
tonic = { version = "0.9", features = ["tls", "tls-webpki-roots"]}
Expand Down
3 changes: 2 additions & 1 deletion src/client/local_ip_detection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ async fn check_ip(
let socket = UdpSocket::bind("0.0.0.0:0").await?;
socket.connect(dest).await?;
let mut buffer = [0u8; 148]; // size from boringtun::noise::HANDSHAKE_INIT_SZ
let mut tun = Tunn::new(priv_key, pub_key, None, None, 1, None).unwrap_or_log();
let tun = Tunn::new(priv_key, pub_key, None, None, 1, None).unwrap_or_log();
tokio::pin!(tun);
match tun.format_handshake_initiation(&mut buffer, false) {
boringtun::noise::TunnResult::Err(_) => return Ok(None),
boringtun::noise::TunnResult::WriteToNetwork(buf) => {
Expand Down

0 comments on commit b56134f

Please sign in to comment.