summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Yann Wettengel <niyawe@niyawe.de>2020-09-03 18:51:56 +0200
committerNiklas Yann Wettengel <niyawe@niyawe.de>2020-09-03 18:51:56 +0200
commit2874a4583ea55a754c30d929cb849fa104a46027 (patch)
treee294b8c784b1507a0b0475b3e822dc30f5878648
parent74ca81df467c8fb24c0f6b8da333f252f0210a10 (diff)
fastd verify add blacklist
-rw-r--r--roles/install_fastd/files/verify.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/install_fastd/files/verify.sh b/roles/install_fastd/files/verify.sh
index 039e4d0..77cf5f4 100644
--- a/roles/install_fastd/files/verify.sh
+++ b/roles/install_fastd/files/verify.sh
@@ -1,2 +1,6 @@
#!/bin/sh
+if grep -q $PEER_KEY /etc/fastd_blacklist; then
+ echo $PEER_KEY blacklisted
+ exit 1
+fi
exit 0