Lines 421-431
Link Here
|
421 |
|
421 |
|
422 |
[ -n "$HEADER" ] || return 0 |
422 |
[ -n "$HEADER" ] || return 0 |
423 |
print_message -e "\tCreating the \"$SET\" set of the \"$TYPE\" type" |
423 |
print_message -e "\tCreating the \"$SET\" set of the \"$TYPE\" type" |
424 |
eval "$IPSET -N $SET $TYPE $HEADER" || print_error "$IPSET -N $SET $TYPE $HEADER" |
424 |
eval "$IPSET create $SET $TYPE $HEADER" || print_error "$IPSET create $SET $TYPE $HEADER" |
425 |
|
425 |
|
426 |
[ -n "$MEMBERS" ] || return 0 |
426 |
[ -n "$MEMBERS" ] || return 0 |
427 |
while read; do |
427 |
while read; do |
428 |
eval "$IPSET -A $SET $REPLY" || print_error "$IPSET -A $SET $REPLY" |
428 |
eval "$IPSET add $SET $REPLY" || print_error "$IPSET add $SET $REPLY" |
429 |
done <<<"$MEMBERS" |
429 |
done <<<"$MEMBERS" |
430 |
} |
430 |
} |
431 |
|
431 |
|
Lines 439-445
Link Here
|
439 |
|
439 |
|
440 |
[ -n "$RULE" ] || return 0 |
440 |
[ -n "$RULE" ] || return 0 |
441 |
print_message -e "\tDestroying the \"$SET\" set of the \"$TYPE\" type" |
441 |
print_message -e "\tDestroying the \"$SET\" set of the \"$TYPE\" type" |
442 |
eval "$IPSET -X $SET" || print_error "$IPSET -X $SET" |
442 |
eval "$IPSET destroy $SET" || print_error "$IPSET destroy $SET" |
443 |
} |
443 |
} |
444 |
|
444 |
|
445 |
ipset_start() |
445 |
ipset_start() |