From eb56b2e89e2cb88f76004a313a5bfb0025218ed2 Mon Sep 17 00:00:00 2001 From: kokoro <89308518+kokoromagic@users.noreply.github.com> Date: Sun, 28 Jun 2026 16:55:48 +0700 Subject: [PATCH] Fixes "ip6tables: No chain/target/match by that name" error on Android devices lacking `xt_addrtype` kernel module support. (#5839) --- .../app/src/main/java/com/v2ray/ang/root/RootProxyManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/V2rayNG/app/src/main/java/com/v2ray/ang/root/RootProxyManager.kt b/V2rayNG/app/src/main/java/com/v2ray/ang/root/RootProxyManager.kt index b1aa2e6b..c4491406 100644 --- a/V2rayNG/app/src/main/java/com/v2ray/ang/root/RootProxyManager.kt +++ b/V2rayNG/app/src/main/java/com/v2ray/ang/root/RootProxyManager.kt @@ -397,7 +397,7 @@ object RootProxyManager { appendLine("ip6tables -t mangle -A $v6pre ! -i $TUN -p udp --dport 53 -j MARK --set-xmark $MARK") appendLine("ip6tables -t mangle -A $v6pre ! -i $TUN -p tcp --dport 53 -j MARK --set-xmark $MARK") bypassCidrsV6.forEach { appendLine("ip6tables -t mangle -A $v6pre ! -i $TUN -d $it -j RETURN") } - appendLine("ip6tables -t mangle -A $v6pre ! -i $TUN -m addrtype ! --src-type LOCAL -j MARK --set-xmark $MARK") + appendLine("ip6tables -t mangle -A $v6pre ! -i $TUN -j MARK --set-xmark $MARK") appendLine("ip6tables -t mangle -D PREROUTING -j $v6pre 2>/dev/null || true") appendLine("ip6tables -t mangle -A PREROUTING -j $v6pre") // fail closed: any forwarded v6 that wasn't marked into the tun (e.g. the