From 5805cc03b2a45fb9dd859b60a5e6fe30d2cf28a2 Mon Sep 17 00:00:00 2001 From: John E <44390932+jmeubank@users.noreply.github.com> Date: Sun, 19 Apr 2020 07:44:29 -0700 Subject: [PATCH] Change PUBLIC_IPV4 to PUBLIC_IP for IPv4/v6 --- openvpn-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 51a1daa..02ef027 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -601,11 +601,11 @@ function installOpenVPN () { # Behind NAT, we'll default to the publicly reachable IPv4/IPv6. if [[ $IPV6_SUPPORT == "y" ]]; then - PUBLIC_IPV4=$(curl https://ifconfig.co) + PUBLIC_IP=$(curl https://ifconfig.co) else - PUBLIC_IPV4=$(curl -4 https://ifconfig.co) + PUBLIC_IP=$(curl -4 https://ifconfig.co) fi - ENDPOINT=${ENDPOINT:-$PUBLIC_IPV4} + ENDPOINT=${ENDPOINT:-$PUBLIC_IP} fi # Run setup questions first, and set other variales if auto-install