mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-05-13 17:35:37 +00:00
feat: support macOS Network Extension (#1902)
* feat: support macOS Network Extension * fix: disable macOS NE feature in cargo hack check
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
#[cfg(any(target_os = "macos", target_os = "freebsd"))]
|
||||
#[cfg(any(
|
||||
all(target_os = "macos", not(feature = "macos-ne")),
|
||||
target_os = "freebsd"
|
||||
))]
|
||||
mod darwin;
|
||||
#[cfg(target_os = "linux")]
|
||||
mod netlink;
|
||||
@@ -144,14 +147,17 @@ impl IfConfiguerTrait for DummyIfConfiger {}
|
||||
#[cfg(target_os = "linux")]
|
||||
pub type IfConfiger = netlink::NetlinkIfConfiger;
|
||||
|
||||
#[cfg(any(target_os = "macos", target_os = "freebsd"))]
|
||||
#[cfg(any(
|
||||
all(target_os = "macos", not(feature = "macos-ne")),
|
||||
target_os = "freebsd"
|
||||
))]
|
||||
pub type IfConfiger = darwin::MacIfConfiger;
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
pub type IfConfiger = windows::WindowsIfConfiger;
|
||||
|
||||
#[cfg(not(any(
|
||||
target_os = "macos",
|
||||
all(target_os = "macos", not(feature = "macos-ne")),
|
||||
target_os = "linux",
|
||||
target_os = "windows",
|
||||
target_os = "freebsd",
|
||||
|
||||
Reference in New Issue
Block a user