From 4c0f50e76cb6228194873ac71ab7e2c548040e1a Mon Sep 17 00:00:00 2001 From: gitea-action Date: Thu, 26 Dec 2024 17:00:19 +0800 Subject: [PATCH] luci-app-passwall: sync upstream last commit: https://github.com/xiaorouji/openwrt-passwall/commit/5c8ccfbf2a21df69ab96a07dbfd9ad7ad6abc4d4 --- luci-app-passwall/root/usr/share/passwall/iptables.sh | 2 +- luci-app-passwall/root/usr/share/passwall/nftables.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/luci-app-passwall/root/usr/share/passwall/iptables.sh b/luci-app-passwall/root/usr/share/passwall/iptables.sh index bf913202d..d23719393 100755 --- a/luci-app-passwall/root/usr/share/passwall/iptables.sh +++ b/luci-app-passwall/root/usr/share/passwall/iptables.sh @@ -809,7 +809,7 @@ add_firewall_rule() { } #屏蔽列表 - [ "$USE_PROXY_LIST_ALL" = "1" ] && { + [ "$USE_BLOCK_LIST_ALL" = "1" ] && { cat $RULES_PATH/block_ip | tr -s "\r\n" "\n" | grep -v "^#" | sed -e "/^$/d" | grep -E "(\.((2(5[0-5]|[0-4][0-9]))|[0-1]?[0-9]{1,2})){3}" | sed -e "s/^/add $IPSET_BLOCK &/g" -e "s/$/ timeout 0/g" | awk '{print $0} END{print "COMMIT"}' | ipset -! -R cat $RULES_PATH/block_ip | tr -s "\r\n" "\n" | grep -v "^#" | sed -e "/^$/d" | grep -E "([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4}" | sed -e "s/^/add $IPSET_BLOCK6 &/g" -e "s/$/ timeout 0/g" | awk '{print $0} END{print "COMMIT"}' | ipset -! -R [ "$USE_GEOVIEW" = "1" ] && { diff --git a/luci-app-passwall/root/usr/share/passwall/nftables.sh b/luci-app-passwall/root/usr/share/passwall/nftables.sh index 755d54f1e..21b4a311f 100755 --- a/luci-app-passwall/root/usr/share/passwall/nftables.sh +++ b/luci-app-passwall/root/usr/share/passwall/nftables.sh @@ -886,7 +886,7 @@ add_firewall_rule() { } #屏蔽列表 - [ "$USE_PROXY_LIST_ALL" = "1" ] && { + [ "$USE_BLOCK_LIST_ALL" = "1" ] && { insert_nftset $NFTSET_BLOCK "0" $(cat $RULES_PATH/block_ip | tr -s "\r\n" "\n" | sed -e "/^$/d" | grep -v "^#" | grep -E "(\.((2(5[0-5]|[0-4][0-9]))|[0-1]?[0-9]{1,2})){3}") insert_nftset $NFTSET_BLOCK6 "0" $(cat $RULES_PATH/block_ip | tr -s "\r\n" "\n" | sed -e "/^$/d" | grep -v "^#" | grep -E "([A-Fa-f0-9]{1,4}::?){1,7}[A-Fa-f0-9]{1,4}") [ "$USE_GEOVIEW" = "1" ] && {