1
1
mirror of https://github.com/angristan/wireguard-install.git synced 2024-05-31 18:50:47 +00:00
This commit is contained in:
XAedgeS 2021-11-07 13:23:21 +07:00
parent 0e1ce77c89
commit a84f7364c0

View File

@ -404,7 +404,7 @@ function uninstallWg() {
fi
}
fucntion listClient() {
function listClient() {
NUMBER_OF_CLIENTS=$(grep -c -E "^### Client" "/etc/wireguard/${SERVER_WG_NIC}.conf")
if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then
echo ""
@ -413,7 +413,7 @@ fucntion listClient() {
fi
echo ""
grep -E "^### Client" "/etc/wireguard/${SERVER_WG_NIC}.conf" | cut -d ' ' -f 3 | nl -s ') '
}