From e30eb1e7ce3cb55ece09b49bc3bc21059ba2bafb Mon Sep 17 00:00:00 2001 From: Teddysun Date: Sun, 12 Oct 2025 23:12:17 +0900 Subject: [PATCH] Update comments --- wireguard.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wireguard.sh b/wireguard.sh index ced2dd4..142b798 100644 --- a/wireguard.sh +++ b/wireguard.sh @@ -2,7 +2,7 @@ # # This is a Shell script for configure and start WireGuard VPN server. # -# Copyright (C) 2019 - 2024 Teddysun +# Copyright (C) 2019 - 2025 Teddysun # # Reference URL: # https://www.wireguard.com @@ -740,7 +740,7 @@ list_clients() { local line="+-------------------------------------------------------------------------+\n" local string=%-35s printf "${line}|${string} |${string} |\n${line}" " Client Interface" " Client's IP" - client_files=($(find /etc/wireguard/ -name "*_client*" | sort)) + client_files=($(find /etc/wireguard/ -name "*_client.conf" | sort)) ips=($(grep -w "AllowedIPs" ${default_server_if} | awk '{print $3}')) [ ${#client_files[@]} -ne ${#ips[@]} ] && echo "One or more client interface file is missing in /etc/wireguard" && exit 1 for ((i=0; i<${#ips[@]}; i++)); do