dummy set_up function for macos

This commit is contained in:
rhaskia 2024-03-10 07:25:33 +13:00 committed by Conrad Kramer
parent 5c6a705d7f
commit 982cfc39b6
2 changed files with 8 additions and 0 deletions

View file

@ -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 }

View file

@ -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.");
}
}