From dbd8681bafe492fa4df7180e848cc7f26e07935c Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Wed, 6 Aug 2025 22:25:39 +0200 Subject: [PATCH] Update debian/debian-secure.sh --- debian/debian-secure.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/debian-secure.sh b/debian/debian-secure.sh index 3073fe8..653bc9e 100644 --- a/debian/debian-secure.sh +++ b/debian/debian-secure.sh @@ -12,14 +12,14 @@ useradd -m -s /bin/bash $USERNAME echo "Configuring WireGuard..." -if [ -z "$CLIENT_IP" ] || [ -z "$SERVER_IP" ] || [ -z "$PREFIXLEN" ]; then +if [[ -z "$CLIENT_IP" ]] || [[ -z "$SERVER_IP" ]] || [[ -z "$PREFIXLEN" ]]; then SUB_START="fc$(openssl rand -hex 1):$(openssl rand -hex 2):$(openssl rand -hex 2):$(openssl rand -hex 2)" CLIENT_IP="$SUB_START::2" SERVER_IP="$SUB_START::1" PREFIXLEN=64 fi -if [ "$CLIENT_IP" == *"."* ]; then +if [[ "$CLIENT_IP" == *"."* ]]; then HOST_MASK=32 else HOST_MASK=128