From 13c0f838b92371800586ae7d6d3eeee4a86ac685 Mon Sep 17 00:00:00 2001 From: Tine Jozelj Date: Tue, 18 Jul 2023 23:15:03 +0200 Subject: [PATCH] fix: remove cloudflare service and improve ipv4/ipv6 handling --- dyndns.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dyndns.sh b/dyndns.sh index 96d7e81..bc2b344 100755 --- a/dyndns.sh +++ b/dyndns.sh @@ -97,8 +97,8 @@ do do echo "Trying with $service..." - ipv4="$(curl -4 -s -f --connect-timeout=2 $service || echo "")" - ipv6="$(curl -6 -s -f --connect-timeout=2 $service || echo "")" + ipv4="$(curl -4 -s -f --connect-timeout 2 $service || echo "")" + ipv6="$(curl -6 -s -f --connect-timeout 2 $service || echo "")" if [[ -n "$ipv4$ipv6" ]] then