From 703be12259e33575f7835c8efdc0e962f8e886b8 Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Tue, 9 Aug 2016 16:38:56 +0200 Subject: [PATCH] try additional web service for current ip address(es) helps when the first is not reachable --- bin/client/tdyndns_client | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/client/tdyndns_client b/bin/client/tdyndns_client index 8fe810a..1c04e34 100755 --- a/bin/client/tdyndns_client +++ b/bin/client/tdyndns_client @@ -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) -- 2.39.5