From 2aa04def28ce093bd8770ed05f6ca0a48a2bbdb6 Mon Sep 17 00:00:00 2001 From: Nathan Lopez <5239977+LopezNathan@users.noreply.github.com> Date: Tue, 26 Feb 2019 14:26:41 -0600 Subject: [PATCH] Fix Variable Substitution for ENDPOINT --- 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