auto-ping.sh: change public ip command

This commit is contained in:
mollusk 2019-11-10 06:51:46 -07:00
parent 258d845248
commit b62f0a9809

View File

@ -44,7 +44,7 @@ withLoop(){
fi
lanip=$(ifconfig | sed -En 's/127.0.0.1//;s/.*inet (addr:)?(([0-9]*\.){3}[0-9]*).*/\2/p')
pubip=$(curl -s http://whatismijnip.nl |cut -d " " -f 5)
pubip=$(curl -s ifconfig.me)
clear
echo "Yay! The internet is working! :)"