Update debian/debian-secure.sh
This commit is contained in:
parent
b6e05b6694
commit
dbd8681baf
1 changed files with 2 additions and 2 deletions
4
debian/debian-secure.sh
vendored
4
debian/debian-secure.sh
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue