Update openvpn-install.sh
This commit is contained in:
parent
86a6d2d3e7
commit
090915ff0d
1 changed files with 2 additions and 2 deletions
|
|
@ -627,9 +627,9 @@ function installOpenVPN() {
|
|||
|
||||
# Behind NAT, we'll default to the publicly reachable IPv4/IPv6.
|
||||
if [[ $IPV6_SUPPORT == "y" ]]; then
|
||||
PUBLIC_IP=$(curl --retry 5 --retry-connrefused https://ifconfig.co)
|
||||
PUBLIC_IP=$(curl --retry 5 --retry-connrefused https://freeipapi.com/ip)
|
||||
else
|
||||
PUBLIC_IP=$(curl --retry 5 --retry-connrefused -4 https://ifconfig.co)
|
||||
PUBLIC_IP=$(curl --retry 5 --retry-connrefused -4 https://freeipapi.com/ip)
|
||||
fi
|
||||
ENDPOINT=${ENDPOINT:-$PUBLIC_IP}
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue