The script don’t work when the first site is down

The script don’t work when the first site is down : here curlmyip.com return connection refused.
We use a proxy here and the Answer is not “None” but a reply from proxy and the script don’t test the second site. icanhazip.com
I’ll post a new script soon on nagios exchange with regex check and put a topic on my blog with a new url to get ip address like http://www.monlinux.net/whatismyip.

Belgotux