dummy set_up function for macos
This commit is contained in:
parent
5c6a705d7f
commit
982cfc39b6
2 changed files with 8 additions and 0 deletions
|
|
@ -14,6 +14,8 @@ tracing = "0.1"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
serde = { version = "1", features = ["derive"], optional = true }
|
serde = { version = "1", features = ["derive"], optional = true }
|
||||||
schemars = { version = "0.8", optional = true }
|
schemars = { version = "0.8", optional = true }
|
||||||
|
|
||||||
|
[target.'cfg(feature = "linux")'.dev-dependencies]
|
||||||
rtnetlink = "0.14"
|
rtnetlink = "0.14"
|
||||||
|
|
||||||
futures = { version = "0.3.28", optional = true }
|
futures = { version = "0.3.28", optional = true }
|
||||||
|
|
|
||||||
|
|
@ -247,4 +247,10 @@ impl TunInterface {
|
||||||
.try_into()
|
.try_into()
|
||||||
.map_err(|_| Error::new(ErrorKind::Other, "Conversion error"))?
|
.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.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue