Replace ifconfig.co with ipv6-test

This commit is contained in:
Sina Moghaddas 2021-10-05 22:24:34 +03:30
parent 8783719459
commit 10dbff9880

View file

@ -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 http://v4v6.ipv6-test.com/api/myip.php)
else else
PUBLIC_IP=$(curl -4 https://ifconfig.co) PUBLIC_IP=$(curl -4 http://v4v6.ipv6-test.com/api/myip.php)
fi fi
ENDPOINT=${ENDPOINT:-$PUBLIC_IP} ENDPOINT=${ENDPOINT:-$PUBLIC_IP}
fi fi