From 03ebe952d0480f120fb3ae138f268a1be9727742 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Mon, 16 Apr 2018 17:57:08 +0300 Subject: [PATCH] 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. --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 0abea02..826426f 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -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 \ No newline at end of file +fi