Fix Variable Substitution for ENDPOINT

This commit is contained in:
Nathan Lopez 2019-02-26 14:26:41 -06:00 committed by GitHub
parent ee35f418be
commit 2aa04def28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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