-
-
Save rotanid/489075e72472fafa9a209e0313aee9d7 to your computer and use it in GitHub Desktop.
fastd verify script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Implementierung einer Fastd Blacklist | |
# Das Script wird aus Fastd beim Aufbau einer Verbindung aufgerufen | |
# Die geblockten Keys werden in der Datei blacklist aufgeführt | |
PEER_KEY=$1 | |
if /bin/grep -q "^$PEER_KEY" /etc/fastd/blacklist; then | |
exit 1 | |
else | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment