This repository has been archived on 2024-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
|
#!/bin/sh
|
|
|
|
/root/wg-sync.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
|