1
0
mirror of https://github.com/Nyr/openvpn-install.git synced 2024-11-23 21:46:08 +03:00

Hostname instead of IP for VPN server address

Suggest user that he's able to use hostname instead of IP address in external address configuration.
This commit is contained in:
Alexey Skobkin 2018-04-16 17:57:08 +03:00 committed by GitHub
parent e73503054e
commit 03ebe952d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -386,7 +386,7 @@ exit 0' > $RCLOCAL
echo ""
echo "Looks like your server is behind a NAT!"
echo ""
echo "If your server is NATed (e.g. LowEndSpirit), I need to know the external IP"
echo "If your server is NATed (e.g. LowEndSpirit), I need to know the external IP or hostname"
echo "If that's not the case, just ignore this and leave the next field blank"
read -p "External IP: " -e USEREXTERNALIP
if [[ "$USEREXTERNALIP" != "" ]]; then
@ -418,4 +418,4 @@ verb 3" > /etc/openvpn/client-common.txt
echo ""
echo "Your client configuration is available at" ~/"$CLIENT.ovpn"
echo "If you want to add more clients, you simply need to run this script again!"
fi
fi