From 02deba32e0503bf7fbf1b9034be013be082ac0e7 Mon Sep 17 00:00:00 2001 From: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com> Date: Tue, 3 Jan 2023 12:41:40 +0100 Subject: [PATCH] Update openvpn-install.sh replace ifconfig with freeipapi --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index e70a717..f43b7b6 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 --retry 5 --retry-connrefused https://freeipapi.com/ip) + PUBLIC_IP=$(curl --retry 5 --retry-connrefused freeipapi.com) else - PUBLIC_IP=$(curl --retry 5 --retry-connrefused -4 https://freeipapi.com/ip) + PUBLIC_IP=$(curl --retry 5 --retry-connrefused -4 freeipapi.com) fi ENDPOINT=${ENDPOINT:-$PUBLIC_IP} fi