mirror of
https://github.com/firehol/firehol.git
synced 2024-06-30 19:02:21 +00:00
fix for ipset compatibility
This commit is contained in:
parent
c963110764
commit
93dfc2b217
@ -3916,6 +3916,9 @@ ipset46() { both ipset "${@}"; }
|
||||
ipset() {
|
||||
work_realcmd_helper $FUNCNAME "$@"
|
||||
|
||||
# make sure we have the command
|
||||
test -z "${IPSET_CMD}" && ipset_cmd >/dev/null 2>&1 </dev/null
|
||||
|
||||
local cmd="${1}" name="${2}"
|
||||
shift 2
|
||||
|
||||
@ -8108,6 +8111,9 @@ case "${arg}" in
|
||||
name="${1}"
|
||||
shift
|
||||
|
||||
# make sure we have the command
|
||||
test -z "${IPSET_CMD}" && ipset_cmd >/dev/null 2>&1 </dev/null
|
||||
|
||||
found=0
|
||||
for x in $( eval "ipset_cmd ${IPSET_LIST_NAMES_CMD}" )
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user