Change PUBLIC_IPV4 to PUBLIC_IP for IPv4/v6
This commit is contained in:
parent
b983e721ed
commit
5805cc03b2
1 changed files with 3 additions and 3 deletions
|
|
@ -601,11 +601,11 @@ function installOpenVPN () {
|
||||||
|
|
||||||
# Behind NAT, we'll default to the publicly reachable IPv4/IPv6.
|
# Behind NAT, we'll default to the publicly reachable IPv4/IPv6.
|
||||||
if [[ $IPV6_SUPPORT == "y" ]]; then
|
if [[ $IPV6_SUPPORT == "y" ]]; then
|
||||||
PUBLIC_IPV4=$(curl https://ifconfig.co)
|
PUBLIC_IP=$(curl https://ifconfig.co)
|
||||||
else
|
else
|
||||||
PUBLIC_IPV4=$(curl -4 https://ifconfig.co)
|
PUBLIC_IP=$(curl -4 https://ifconfig.co)
|
||||||
fi
|
fi
|
||||||
ENDPOINT=${ENDPOINT:-$PUBLIC_IPV4}
|
ENDPOINT=${ENDPOINT:-$PUBLIC_IP}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run setup questions first, and set other variales if auto-install
|
# Run setup questions first, and set other variales if auto-install
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue