Skip to content

Commit 886186c

Browse files
committed
Update BoringTun submodule and fix build on FreeBSD
1 parent 61805f0 commit 886186c

File tree

4 files changed

+74
-34
lines changed

4 files changed

+74
-34
lines changed

Cargo.lock

Lines changed: 70 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ boringtun = { path = "boringtun/boringtun", default-features = false, features =
3131
libc = { version = "0.2", default-features = false }
3232
nix = { version = "0.30", features = ["ioctl", "socket"] }
3333

34-
3534
[target.'cfg(target_os = "windows")'.dependencies]
36-
ipnet = "2.11.0"
37-
windows = { version = "0.62.1", features = [
35+
ipnet = "2.11"
36+
windows = { version = "0.62", features = [
3837
"Win32_NetworkManagement_IpHelper",
3938
"Win32_NetworkManagement_Ndis",
4039
"Win32_Networking_WinSock",

src/wgapi_freebsd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use crate::{
1212
/// Requires FreeBSD version 13+.
1313
impl WireguardInterfaceApi for WGApi<Kernel> {
1414
/// Creates a WireGuard network interface.
15-
fn create_interface(&self) -> Result<(), WireguardInterfaceError> {
15+
fn create_interface(&mut self) -> Result<(), WireguardInterfaceError> {
1616
let _ = bsd::load_wireguard_kernel_module();
1717
debug!("Creating interface {}", &self.ifname);
1818
bsd::create_interface(&self.ifname)?;

0 commit comments

Comments
 (0)