Fixed deletion of nft chains.

This commit is contained in:
gSpot
2024-12-02 15:56:28 +03:00
parent 4c0420f044
commit 2227aa2306
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ruantiblock
PKG_VERSION:=2.1.1
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/ruantiblock_openwrt>
include $(INCLUDE_DIR)/package.mk
+2 -2
View File
@@ -604,10 +604,10 @@ AddNftRules() {
}
DeleteNftRules() {
NftInstanceDelete " "
DeleteUserInstancesNftRules
NftDeleteActionChains
NftDeleteBaseChains
NftInstanceDelete " "
DeleteUserInstancesNftRules
if [ "$PROXY_MODE" = "2" ]; then
NftRouteDelete $VPN_ROUTE_TABLE_ID_START 2> /dev/null
elif [ "$PROXY_MODE" = "3" -a "$T_PROXY_TYPE" = "1" ]; then