Skip to content

Commit

Permalink
fix(init): fix typo (vernesong#3241)
Browse files Browse the repository at this point in the history
we should use nft_tproxy with nftables. 
fix error: failed to find a module named xt_TPROXY
  • Loading branch information
msylgj authored and zheshifandian committed Jun 22, 2023
1 parent 7956e50 commit f0c4910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion luci-app-openclash/root/etc/init.d/openclash
Expand Up @@ -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
Expand Down

0 comments on commit f0c4910

Please sign in to comment.