From 24637e08dce97a2f96ee5cb7841740004aaaa4b5 Mon Sep 17 00:00:00 2001 From: kxxt Date: Sun, 1 Jun 2025 10:56:37 +0800 Subject: [PATCH] Add new isNotExistPattern for iptables used in Android Link: https://cs.android.com/android/platform/superproject/main/+/main:external/iptables/libxtables/xtables.c;l=989 --- iptables/iptables.go | 1 + 1 file changed, 1 insertion(+) diff --git a/iptables/iptables.go b/iptables/iptables.go index b058995..be7840c 100644 --- a/iptables/iptables.go +++ b/iptables/iptables.go @@ -50,6 +50,7 @@ var isNotExistPatterns = []string{ "No chain/target/match by that name.\n", "No such file or directory", "does not exist", + "Couldn't find target", } // IsNotExist returns true if the error is due to the chain or rule not existing