modified: frida_core/src/mac_tun.rs
modified: frida_core/src/tun.rs
This commit is contained in:
parent
4a183e2d4a
commit
5cebc38aea
@ -1,6 +1,7 @@
|
||||
use std::process::Command;
|
||||
use std::sync::Arc;
|
||||
use tun_tap::{Iface, Mode};
|
||||
use std::error::Error;
|
||||
|
||||
use crate::device::AbstractDevice;
|
||||
|
||||
|
@ -1,10 +1,14 @@
|
||||
use crate::device::AbstractDevice;
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
use crate::win_tun::{DeviceReader, DeviceWriter, create};
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
use crate::linux_tun::{DeviceReader, DeviceWriter, create};
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
use crate::mac_tun::{DeviceReader, DeviceWriter, create};
|
||||
|
||||
pub fn create_tun(cfg: AbstractDevice) -> (DeviceReader, DeviceWriter) {
|
||||
create(cfg)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user