[error fetching address]
This commit is contained in:
parent
dc2cbd543e
commit
75ae29976a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user