update for windows
This commit is contained in:
parent
b60c6ad687
commit
9f84fc6efa
5 changed files with 20 additions and 1 deletions
|
|
@ -2,6 +2,8 @@ use std::io::Error;
|
|||
|
||||
use fehler::throws;
|
||||
|
||||
#[cfg(any(target_os = "linux", target_vendor = "apple"))]
|
||||
#[cfg(feature = "tokio")]
|
||||
use super::tokio::TunInterface;
|
||||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
|
|
@ -47,6 +49,8 @@ impl TunOptions {
|
|||
self
|
||||
}
|
||||
|
||||
#[cfg(any(target_os = "linux", target_vendor = "apple"))]
|
||||
#[cfg(feature = "tokio")]
|
||||
#[throws]
|
||||
pub fn open(self) -> TunInterface {
|
||||
let ti = super::TunInterface::new_with_options(self)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue