Update luci-app-passwall2.patch

This commit is contained in:
kiddin9 authored and GitHub committed 2026-08-14 17:25:06 +08:00
1 parent c2de035b57
commit f605fbccd8
1 file changed
-14
@@ -1,17 +1,3 @@
--- a/luci-app-passwall2/root/etc/uci-defaults/luci-passwall2
+++ b/luci-app-passwall2/root/etc/uci-defaults/luci-passwall2
@@ -1,5 +1,10 @@
#!/bin/sh
+[ "`which nft`" ] && {
+uci -q set passwall2.@global_forwarding[0].use_nft=1
+uci -q commit passwall2
+}
+
if [ -e "/etc/config/ucitrack" ]; then
uci -q batch <<-EOF
delete ucitrack.@passwall2[-1]
--- a/luci-app-passwall2/Makefile
+++ b/luci-app-passwall2/Makefile
@@ -31,7 +31,26 @@ LUCI_PKGARCH:=all