From 930eaf48d2dfc0e8afee1c600757792cf6836210 Mon Sep 17 00:00:00 2001 From: sqlerrorthing <148702857+sqlerrorthing@users.noreply.github.com> Date: Sat, 1 Nov 2025 03:39:48 +0800 Subject: [PATCH] remove useless --- rust/remove_os_check.patch | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 rust/remove_os_check.patch diff --git a/rust/remove_os_check.patch b/rust/remove_os_check.patch deleted file mode 100644 index b34a2af..0000000 --- a/rust/remove_os_check.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff --git a/crates/iptables/src/lib.rs b/crates/iptables/src/lib.rs -index 4a4d6dc..e7d15fc 100644 ---- a/src/lib.rs -+++ b/src/lib.rs -@@ -92,14 +92,6 @@ pub struct IPTables { - pub is_numeric: bool, - } - --/// Returns `None` because iptables only works on linux --#[cfg(not(target_os = "linux"))] --pub fn new(is_ipv6: bool) -> Result> { -- Err(error_from_str("iptables only works on Linux")) --} -- --/// Creates a new `IPTables` Result with the command of 'iptables' if `is_ipv6` is `false`, otherwise the command is 'ip6tables'. --#[cfg(target_os = "linux")] - pub fn new(is_ipv6: bool) -> Result> { - let cmd = if is_ipv6 { "ip6tables" } else { "iptables" }; -