forked from FF-RGB/ansible
Implement functional Blacklist Script
This commit is contained in:
parent
8f9d46beaf
commit
282576c086
@ -1,2 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
exit 0
|
PEER_KEY=$1
|
||||||
|
PEER_ADDRESS=$2
|
||||||
|
if /bin/grep -Fq $PEER_KEY /opt/ffrgb_cty/vpn-blacklist/blacklist.json; then
|
||||||
|
echo "BANNED KEY: $PEER_KEY $PEER_ADDRESS"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "CLEAN KEY: $PEER_KEY "
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user