token-validator: add clean-wg helper script
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
76566498b2
commit
73a6323571
8
token-validator/clean-wg.sh
Normal file
8
token-validator/clean-wg.sh
Normal 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
|
Reference in New Issue
Block a user