]> ToastFreeware Gitweb - toast/tdyndns.git/blobdiff - bin/client/tdyndns_client
try additional web service for current ip address(es)
[toast/tdyndns.git] / bin / client / tdyndns_client
index 8fe810a115cfb9d7e05b40eacc43be4845e0f5ce..1c04e34725d78eccf722f0f364651581f287e51e 100755 (executable)
@@ -41,9 +41,8 @@ fi
 
 # data
 
-# alternative: -4 icanhazip.com, -6 icanhazip.com or ipv{4,6}.icanhazip.com
-NEWIPV4=$($WGET -O- http://ipv4.wtfismyip.com/text)
-NEWIPV6=$($WGET -O- http://ipv6.wtfismyip.com/text)
+NEWIPV4=$($WGET -O- http://ipv4.wtfismyip.com/text || $WGET -O- http://ipv4.icanhazip.com)
+NEWIPV6=$($WGET -O- http://ipv6.wtfismyip.com/text || $WGET -O- http://ipv6.icanhazip.com)
 
 if command -v dig >/dev/null ; then
        OLDIPV4=$(dig -t a    +short $FQDN @$NS)