mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-06-01 03:00:47 +00:00
Fixes
This commit is contained in:
parent
a2953ec795
commit
51479f75b3
|
@ -28,7 +28,7 @@ Supported distributions:
|
|||
Download and execute the script. Answer the questions asked by the script and it will take care of the rest.
|
||||
|
||||
```bash
|
||||
curl -O https://raw.githubusercontent.com/elieobeid7/wireguard-install/master/wireguard-install.sh
|
||||
curl -O https://raw.githubusercontent.com/angristan/wireguard-install/master/wireguard-install.sh
|
||||
chmod +x wireguard-install.sh
|
||||
./wireguard-install.sh
|
||||
```
|
||||
|
|
|
@ -330,14 +330,13 @@ AllowedIPs = ${CLIENT_WG_IPV4}/32,${CLIENT_WG_IPV6}/128" >>"/etc/wireguard/${SER
|
|||
|
||||
function listClients() {
|
||||
NUMBER_OF_CLIENTS=$(grep -c -E "^### Client" "/etc/wireguard/${SERVER_WG_NIC}.conf")
|
||||
if [[ ${NUMBER_OF_CLIENTS} == '0' ]]; then
|
||||
if [[ ${NUMBER_OF_CLIENTS} -eq 0 ]]; then
|
||||
echo ""
|
||||
echo "You have no existing clients!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
grep -E "^### Client" "/etc/wireguard/${SERVER_WG_NIC}.conf" | cut -d ' ' -f 3 | nl -s ') '
|
||||
|
||||
}
|
||||
|
||||
function revokeClient() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user