```
$ curl -s -4 ipinfo.io | grep "ip" | awk -F\" '{print $4}'
98.248.33.195

$ curl -s -4 ipinfo.io/ip
98.248.33.195
```
This commit is contained in:
Ben Dowling 2015-11-16 21:20:00 -08:00
parent 7895ec17a7
commit b8c65b2942

View File

@ -132,7 +132,7 @@ function pre_install(){
echo "Getting Public IP address, Please wait a moment..."
IP=$(curl -s -4 icanhazip.com)
if [[ "$IP" = "" ]]; then
IP=$(curl -s -4 ipinfo.io | grep "ip" | awk -F\" '{print $4}')
IP=$(curl -s -4 ipinfo.io/ip)
fi
echo -e "Your main public IP is\t\033[32m$IP\033[0m"
echo ""