Minor improvments on eachf and show_ip

This commit is contained in:
2022-05-07 13:08:52 +02:00
parent 26919d0d5a
commit 368956107b
2 changed files with 16 additions and 10 deletions

View File

@ -1,2 +1,2 @@
ip_value=$(curl -s https://dnsleak.com/ | grep "You are connecting from an IPv4 address" -A 2 | grep "text" | awk '{ print $3}')
echo $ip_value | sed -e 's/value="//g' | sed -e 's/"//g'
ip_value=$(curl -s https://api.ipify.org/)
echo $ip_value