1
0
Fork 0

[error fetching address]

This commit is contained in:
dtb 2022-10-22 09:45:24 -04:00
parent dc2cbd543e
commit 75ae29976a
1 changed files with 3 additions and 2 deletions

View File

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