Make Abusix lookup compatible with Dash

pull/1685/head
Jan Grewe 8 years ago committed by GitHub
parent 96d404f0fb
commit 901eeff53d

@ -62,8 +62,9 @@ actioncheck =
# Values: CMD
#
actionban = oifs=${IFS};
IFS=.; SEP_IP=( <ip> ); set -- ${SEP_IP}; ADDRESSES=$(dig +short -t txt -q $4.$3.$2.$1.abuse-contacts.abusix.org);
IFS=,; ADDRESSES=$(echo $ADDRESSES)
REV_IP=$(printf %%s ${IP}. | tac -s.)
ADDRESSES=$(dig +short -t txt -q ${REV_IP}abuse-contacts.abusix.org)
IFS=,; ADDRESSES=$(echo $ADDRESSES)
IFS=${oifs}
IP=<ip>
if [ ! -z "$ADDRESSES" ]; then

Loading…
Cancel
Save