From 18d229e935cc3f243fa020dbf42e943939485c60 Mon Sep 17 00:00:00 2001 From: neneeen <59354331+neneeen@users.noreply.github.com> Date: Thu, 17 Jun 2021 07:44:22 +0700 Subject: [PATCH] ifconfig.co now includes Cloudflare HTML. Workaround using icanhazip (which ironically is also hosted by CF) --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 806d147..6e3dac1 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 https://icanhazip.com) else - PUBLIC_IP=$(curl -4 https://ifconfig.co) + PUBLIC_IP=$(curl -4 https://icanhazip.com) fi ENDPOINT=${ENDPOINT:-$PUBLIC_IP} fi