2019-03-27 14:46:44 +01:00
|
|
|
#!/bin/bash
|
|
|
|
PEER_KEY=$1
|
|
|
|
PEER_ADDRESS=$2
|
2019-04-27 15:09:14 +02:00
|
|
|
BLACKLIST=$3
|
|
|
|
if /bin/grep -Fq $PEER_KEY $BLACKLIST; then
|
2019-03-27 14:46:44 +01:00
|
|
|
echo "BANNED KEY: $PEER_KEY $PEER_ADDRESS"
|
|
|
|
exit 1
|
|
|
|
else
|
2019-04-27 14:44:14 +02:00
|
|
|
echo "CLEAN KEY: $PEER_KEY $PEER_ADDRESS"
|
2019-03-27 14:46:44 +01:00
|
|
|
exit 0
|
|
|
|
fi
|