From 750e85b1ae7bdff196d3a1362371cd8e0e2264d9 Mon Sep 17 00:00:00 2001 From: msylgj <1388852+msylgj@users.noreply.github.com> Date: Thu, 27 Apr 2023 11:52:52 +0800 Subject: [PATCH] fix(init): fix typo (#3241) we should use nft_tproxy with nftables. fix error: failed to find a module named xt_TPROXY --- luci-app-openclash/root/etc/init.d/openclash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luci-app-openclash/root/etc/init.d/openclash b/luci-app-openclash/root/etc/init.d/openclash index be602c815c..ad98e6fdca 100644 --- a/luci-app-openclash/root/etc/init.d/openclash +++ b/luci-app-openclash/root/etc/init.d/openclash @@ -2059,7 +2059,7 @@ if [ -n "$FW4" ]; then #route if [ "$ipv6_mode" -ne 2 ]; then if [ "$enable_v6_udp_proxy" -eq 1 ] || [ "$ipv6_mode" -eq 0 ]; then - modprobe xt_TPROXY >/dev/null 2>&1 + modprobe nft_tproxy >/dev/null 2>&1 ip -6 rule add fwmark "$PROXY_FWMARK" table "$PROXY_ROUTE_TABLE" ip -6 route add local ::/0 dev lo table "$PROXY_ROUTE_TABLE" fi