1
0

[error fetching address]

This commit is contained in:
dtb 2022-10-22 09:45:24 -04:00
parent dc2cbd543e
commit 75ae29976a

View File

@ -13,7 +13,8 @@ PUBLIC_IP6_FETCH_URL="$PUBLIC_IP_FETCH_URL"
printf "%s / %s\n" \ printf "%s / %s\n" \
"$(curl -4 --connect-timeout 5 --silent "$PUBLIC_IP_FETCH_URL")" \ "$(curl -4 --connect-timeout 5 --silent "$PUBLIC_IP_FETCH_URL")" \
"$(curl -6 --connect-timeout 5 --silent "$PUBLIC_IP6_FETCH_URL")" \ "$(curl -6 --connect-timeout 5 --silent "$PUBLIC_IP6_FETCH_URL")" \
| sed -e 's/ \/ $//g' \ | sed -e 's/ \/ $//' \
-e 's/^ \/ //g' -e 's/^ \/ //' \
-e 's/^$/[error fetching address]/'
exit 0 exit 0