remove nmh tunnel vision
This commit is contained in:
parent
9c73c85848
commit
db30b4721d
@ -10,15 +10,10 @@ 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 ' / ' ] \
|
| sed 's/ \/ $//g' \
|
||||||
[ curl -6 --connect-timeout 5 --silent \
|
| sed 's/^ \/ //g'
|
||||||
"$PUBLIC_IP6_FETCH_URL" ] \
|
|
||||||
| tr -d '\n' \
|
|
||||||
| xargs echo \
|
|
||||||
| sed 's/ \/$//g' \
|
|
||||||
| sed 's/^\/ //g'
|
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user