diff --git a/frida_core/src/mac_tun.rs b/frida_core/src/mac_tun.rs index b49e902..d3e5dc4 100644 --- a/frida_core/src/mac_tun.rs +++ b/frida_core/src/mac_tun.rs @@ -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; diff --git a/frida_core/src/tun.rs b/frida_core/src/tun.rs index c51b669..3cc5c50 100644 --- a/frida_core/src/tun.rs +++ b/frida_core/src/tun.rs @@ -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) } \ No newline at end of file