ifconfig.co now includes Cloudflare HTML.
Workaround using icanhazip (which ironically is also hosted by CF)
This commit is contained in:
parent
2ab48f2265
commit
18d229e935
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.
|
# Behind NAT, we'll default to the publicly reachable IPv4/IPv6.
|
||||||
if [[ $IPV6_SUPPORT == "y" ]]; then
|
if [[ $IPV6_SUPPORT == "y" ]]; then
|
||||||
PUBLIC_IP=$(curl https://ifconfig.co)
|
PUBLIC_IP=$(curl https://icanhazip.com)
|
||||||
else
|
else
|
||||||
PUBLIC_IP=$(curl -4 https://ifconfig.co)
|
PUBLIC_IP=$(curl -4 https://icanhazip.com)
|
||||||
fi
|
fi
|
||||||
ENDPOINT=${ENDPOINT:-$PUBLIC_IP}
|
ENDPOINT=${ENDPOINT:-$PUBLIC_IP}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue