diff --git a/Cargo.lock b/Cargo.lock index 58c39ad5..22ae6574 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -468,7 +468,7 @@ dependencies = [ [[package]] name = "boringtun" version = "0.6.0" -source = "git+https://github.com/cloudflare/boringtun?rev=e3252d9c4f4c8fc628995330f45369effd4660a1#e3252d9c4f4c8fc628995330f45369effd4660a1" +source = "git+https://github.com/cloudflare/boringtun?rev=2f3c85f5c4a601018c10b464b1ca890d9504bf6e#2f3c85f5c4a601018c10b464b1ca890d9504bf6e" dependencies = [ "aead", "base64 0.13.1", diff --git a/Cargo.toml b/Cargo.toml index c4e329e8..5e97dd5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -74,7 +74,7 @@ socket2 = "0.5.10" [patch.crates-io] # tokio = { path = "../tokio/tokio" } -boringtun = { git = 'https://github.com/cloudflare/boringtun', rev = 'e3252d9c4f4c8fc628995330f45369effd4660a1' } +boringtun = { git = 'https://github.com/cloudflare/boringtun', rev = '2f3c85f5c4a601018c10b464b1ca890d9504bf6e' } [target.'cfg(windows)'.dependencies.windows] version = "0.61.1" diff --git a/src/packet_sources/wireguard.rs b/src/packet_sources/wireguard.rs index 86ee0498..bd3ea24c 100755 --- a/src/packet_sources/wireguard.rs +++ b/src/packet_sources/wireguard.rs @@ -71,8 +71,7 @@ impl PacketSourceConf for WireGuardConf { Some(25), index, None, - ) - .map_err(|error| anyhow!(error))?; + ); let peer = Arc::new(Mutex::new(WireGuardPeer { tunnel, diff --git a/wireguard-test-client/src/main.rs b/wireguard-test-client/src/main.rs index 10684c51..f45db09a 100755 --- a/wireguard-test-client/src/main.rs +++ b/wireguard-test-client/src/main.rs @@ -23,7 +23,7 @@ fn main() -> Result<()> { <[u8; 32]>::try_from(BASE64.decode(b"mitmV5Wo7pRJrHNAKhZEI0nzqqeO8u4fXG+zUbZEXA0=")?) .unwrap(), ); - let mut tunn = Tunn::new(static_private, peer_static_public, None, None, 0, None).unwrap(); + let mut tunn = Tunn::new(static_private, peer_static_public, None, None, 0, None); let socket = UdpSocket::bind("127.0.0.1:0")?; socket.set_read_timeout(Some(Duration::from_secs(1)))?;