Skip to content

Commit

Permalink
dummy set_up function for macos
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaskia committed Mar 9, 2024
1 parent 56c2f02 commit 059798e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ tracing = "0.1"
log = "0.4"
serde = { version = "1", features = ["derive"], optional = true }
schemars = { version = "0.8", optional = true }

[target.'cfg(feature = "linux")'.dev-dependencies]
rtnetlink = "0.14"

futures = { version = "0.3.28", optional = true }
Expand Down
6 changes: 6 additions & 0 deletions tun/src/unix/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,4 +247,10 @@ impl TunInterface {
.try_into()
.map_err(|_| Error::new(ErrorKind::Other, "Conversion error"))?
}

#[throws]
#[instrument]
pub fn set_up(&self, up: bool) {
tracing::warn!("Setting tun up is not supported yet on apple.");
}
}

0 comments on commit 059798e

Please sign in to comment.