Update openvpn-install.sh

This commit is contained in:
Siebren Kraak 2024-05-07 08:52:12 +02:00 committed by GitHub
parent c7d8455631
commit ddd5a41b11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -627,9 +627,9 @@ function installOpenVPN() {
# Behind NAT, we'll default to the publicly reachable IPv4/IPv6. # Behind NAT, we'll default to the publicly reachable IPv4/IPv6.
if [[ $IPV6_SUPPORT == "y" ]]; then if [[ $IPV6_SUPPORT == "y" ]]; then
PUBLIC_IP=$(curl --retry 5 --retry-connrefused https://ifconfig.co) PUBLIC_IP=$(curl --retry 5 --retry-connrefused https://ip.seeip.org)
else else
PUBLIC_IP=$(curl --retry 5 --retry-connrefused -4 https://ifconfig.co) PUBLIC_IP=$(curl --retry 5 --retry-connrefused -4 https://ip.seeip.org)
fi fi
ENDPOINT=${ENDPOINT:-$PUBLIC_IP} ENDPOINT=${ENDPOINT:-$PUBLIC_IP}
fi fi