Template
1
0
mirror of https://github.com/bol-van/zapret2.git synced 2026-03-13 22:03:09 +00:00

AI inspired fixes

This commit is contained in:
bol-van
2026-01-03 13:15:01 +03:00
parent 4f6510daf1
commit b239690e33
3 changed files with 3 additions and 10 deletions

View File

@@ -185,8 +185,7 @@ is_linked_to_busybox()
[ "${P%busybox*}" != "$P" ] && return
elif [ -f "$F" -a -n "$BB" ]; then
# possible hardlink
[ $(get_dir_inode "$F") = $(get_dir_inode "$BB") ]
return
[ $(get_dir_inode "$F") = $(get_dir_inode "$BB") ] && return
fi
done
return 1

View File

@@ -52,7 +52,7 @@ nft_flush_chain()
nft_chain_empty()
{
# $1 - chain name
local count=$(nft list chain inet $ZAPRET_NFT_TABLE prerouting | wc -l)
local count=$(nft list chain inet $ZAPRET_NFT_TABLE $1 | wc -l)
[ "$count" -le 4 ]
}
nft_rule_exists()