9 lines
189 B
Bash
9 lines
189 B
Bash
|
#!/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
|