token-validator: add clean-wg helper script
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
nemunaire 2023-03-15 05:26:34 +01:00
parent 76566498b2
commit 73a6323571

View File

@ -0,0 +1,8 @@
#!/bin/sh
# Clean wg
while true
do
sleep 900
wg show wg-adlin dump | egrep "^\S+\s+\S+\s+\S+\s+\(none\)" | while read pubkey end; do wg set wg-adlin peer $pubkey remove; done
done