ipv4: fixed broken request

This commit is contained in:
Roger Sikorski 2022-08-01 22:25:43 +02:00
parent 589f67b8c1
commit dd369c801d

View File

@ -34,7 +34,7 @@ echo "currentIp:" $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" \