From 5cebc38aea80718f93244d3d267977eccdfc5b88 Mon Sep 17 00:00:00 2001 From: alterdekim Date: Tue, 10 Dec 2024 04:36:54 +0300 Subject: [PATCH] modified: frida_core/src/mac_tun.rs modified: frida_core/src/tun.rs --- frida_core/src/mac_tun.rs | 1 + frida_core/src/tun.rs | 4 ++++ 2 files changed, 5 insertions(+) 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