From 3bf72c7df76c9d99f7bd7d05034d4dd714afc4bf Mon Sep 17 00:00:00 2001 From: Nathan Lopez <5239977+LopezNathan@users.noreply.github.com> Date: Tue, 26 Feb 2019 15:39:00 -0600 Subject: [PATCH] Fix Variable Substitution for ENDPOINT (#397) --- openvpn-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 4633576..c7eed28 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -572,7 +572,7 @@ function installOpenVPN () { # Behind NAT, we'll default to the publicly reachable IPv4. PUBLIC_IPV4=$(curl ifconfig.co) - ENDPOINT=${ENDPOINT:-PUBLIC_IPV4} + ENDPOINT=${ENDPOINT:-$PUBLIC_IPV4} fi # Run setup questions first, and set other variales if auto-install