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

Loading…
Cancel
Save