remove nmh tunnel vision
This commit is contained in:
parent
9c73c85848
commit
db30b4721d
|
@ -10,14 +10,9 @@ http://ifconfig.io/
|
||||||
PUBLIC_IP_FETCH_URL="https://icanhazip.com"
|
PUBLIC_IP_FETCH_URL="https://icanhazip.com"
|
||||||
PUBLIC_IP6_FETCH_URL="$PUBLIC_IP_FETCH_URL"
|
PUBLIC_IP6_FETCH_URL="$PUBLIC_IP_FETCH_URL"
|
||||||
|
|
||||||
pscat \
|
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")" \
|
||||||
[ printf ' / ' ] \
|
|
||||||
[ curl -6 --connect-timeout 5 --silent \
|
|
||||||
"$PUBLIC_IP6_FETCH_URL" ] \
|
|
||||||
| tr -d '\n' \
|
|
||||||
| xargs echo \
|
|
||||||
| sed 's/ \/ $//g' \
|
| sed 's/ \/ $//g' \
|
||||||
| sed 's/^ \/ //g'
|
| sed 's/^ \/ //g'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user