1
1
mirror of https://github.com/namibia/openvpn-install.git synced 2024-06-02 03:20:47 +00:00

Fix Variable Substitution for ENDPOINT (#397)

This commit is contained in:
Nathan Lopez 2019-02-26 15:39:00 -06:00 committed by Stanislas
parent ee35f418be
commit 3bf72c7df7

View File

@ -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