From 99b6c757a529e08f450c1db35bc99ed257f76eb9 Mon Sep 17 00:00:00 2001 From: "legale.legale" Date: Tue, 15 Nov 2022 21:01:55 +0400 Subject: [PATCH] minor fix --- wireguard-install.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index 666cdf3..808c725 100755 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -117,9 +117,8 @@ function installQuestions() { done #Allowed IPs - until [[ ${ALLOWED_IPS} =~ ^.*$ ]]; do - read -rp "Allowed IPs list: - " -e -i "0.0.0.0/0, ::/0, 128.0.0.0/1" ALLOWED_IPS + until [[ ${ALLOWED_IPS} =~ ^.+$ ]]; do + read -rp "Allowed IPs list: " -e -i '0.0.0.0/0, ::/0, 128.0.0.0/1' ALLOWED_IPS if [[ ${ALLOWED_IPS} == "" ]]; then ALLOWED_IPS="0.0.0.0/0, ::/0, 128.0.0.0/1" fi