Use ipv4.api.cloudron.io endpoint for IPv4 detection

This commit is contained in:
Girish Ramakrishnan
2022-01-04 22:14:53 -08:00
parent 15d0dd93f4
commit 531a6fe0dc
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -214,7 +214,7 @@ while true; do
sleep 10
done
if ! ip=$(curl -s --fail --connect-timeout 2 --max-time 2 https://api.cloudron.io/api/v1/helper/public_ip | sed -n -e 's/.*"ip": "\(.*\)"/\1/p'); then
if ! ip=$(curl -s --fail --connect-timeout 2 --max-time 2 https://ipv4.api.cloudron.io/api/v1/helper/public_ip | sed -n -e 's/.*"ip": "\(.*\)"/\1/p'); then
ip='<IP>'
fi
if [[ -z "${setupToken}" ]]; then