diff --git a/openvpn-install.sh b/openvpn-install.sh index a31713a..f0e00a4 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -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 https://ifconfig.co) + PUBLIC_IP=$(curl http://v4v6.ipv6-test.com/api/myip.php) else - PUBLIC_IP=$(curl -4 https://ifconfig.co) + PUBLIC_IP=$(curl -4 http://v4v6.ipv6-test.com/api/myip.php) fi ENDPOINT=${ENDPOINT:-$PUBLIC_IP} fi