1
0
зеркало из https://github.com/angristan/openvpn-install.git synced 2025-09-18 02:00:46 +02:00
replace ifconfig with freeipapi
Этот коммит содержится в:
Saeed Vaziry 2023-01-03 12:41:40 +01:00 коммит произвёл GitHub
родитель 090915ff0d
Коммит 02deba32e0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

Просмотреть файл

@ -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