fixed message to user
This commit is contained in:
parent
7d88709f21
commit
2ac350c9d3
@ -177,9 +177,9 @@ else
|
|||||||
read -p "IP address: " -e -i $IP IP
|
read -p "IP address: " -e -i $IP IP
|
||||||
# If $IP is a private IP address, the server must be behind NAT
|
# If $IP is a private IP address, the server must be behind NAT
|
||||||
if echo "$IP" | grep -qE '^(10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.|192\.168)'; then
|
if echo "$IP" | grep -qE '^(10\.|172\.1[6789]\.|172\.2[0-9]\.|172\.3[01]\.|192\.168)'; then
|
||||||
echo
|
# Autodetect IP address and pre-fill for the user
|
||||||
echo "This server is behind NAT. What is the public IPv4 address or hostname?"
|
IP=`dig +short myip.opendns.com @resolver1.opendns.com`
|
||||||
IP=`dig +short myip.opendns.com @resolver1.opendns.com`
|
read -p "IP address: " -e -i $IP IP
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
echo "Which protocol do you want for OpenVPN connections?"
|
echo "Which protocol do you want for OpenVPN connections?"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user