From dd369c801d2e3d3584bc78c0859145db3cee35d7 Mon Sep 17 00:00:00 2001 From: Roger Sikorski Date: Mon, 1 Aug 2022 22:25:43 +0200 Subject: [PATCH] ipv4: fixed broken request --- godaddy_ddns_ipv4.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/godaddy_ddns_ipv4.sh b/godaddy_ddns_ipv4.sh index 552d465..04d9146 100755 --- a/godaddy_ddns_ipv4.sh +++ b/godaddy_ddns_ipv4.sh @@ -31,10 +31,10 @@ dnsIp=$(echo $result | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b") currentIp=$(curl -s GET "https://ipv4.wtfismyip.com/text") echo "currentIp:" $currentIp - if [ $dnsIp != $currentIp ]; +if [ $dnsIp != $currentIp ]; then # echo "Ips are not equal" ## debug - request='{"data":"'$currentIp'","ttl":600}' + request='[{"data":"'$currentIp'","name":"'$name'","ttl":600,"type":"A"}]' # echo $request # debug nresult=$(curl -i -s -X PUT \ -H "$headers" \