From 10dbff9880202db673f670a445151f26e8bed2e7 Mon Sep 17 00:00:00 2001 From: Sina Moghaddas Date: Tue, 5 Oct 2021 22:24:34 +0330 Subject: [PATCH] Replace ifconfig.co with ipv6-test --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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