1
0

remove nmh tunnel vision

This commit is contained in:
dtb 2022-10-22 01:42:01 -04:00
parent 9c73c85848
commit db30b4721d

View File

@ -10,15 +10,10 @@ http://ifconfig.io/
PUBLIC_IP_FETCH_URL="https://icanhazip.com"
PUBLIC_IP6_FETCH_URL="$PUBLIC_IP_FETCH_URL"
pscat \
[ curl -4 --connect-timeout 5 --silent "$PUBLIC_IP_FETCH_URL" \
] \
[ printf ' / ' ] \
[ curl -6 --connect-timeout 5 --silent \
"$PUBLIC_IP6_FETCH_URL" ] \
| tr -d '\n' \
| xargs echo \
| sed 's/ \/$//g' \
| sed 's/^\/ //g'
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 's/ \/ $//g' \
| sed 's/^ \/ //g'
exit 0