mirror of
https://github.com/RogerSik/godaddy_ddns.git
synced 2024-11-24 01:20:27 +01:00
ipv4: fixed broken request
This commit is contained in:
parent
589f67b8c1
commit
dd369c801d
@ -34,7 +34,7 @@ echo "currentIp:" $currentIp
|
|||||||
if [ $dnsIp != $currentIp ];
|
if [ $dnsIp != $currentIp ];
|
||||||
then
|
then
|
||||||
# echo "Ips are not equal" ## debug
|
# echo "Ips are not equal" ## debug
|
||||||
request='{"data":"'$currentIp'","ttl":600}'
|
request='[{"data":"'$currentIp'","name":"'$name'","ttl":600,"type":"A"}]'
|
||||||
# echo $request # debug
|
# echo $request # debug
|
||||||
nresult=$(curl -i -s -X PUT \
|
nresult=$(curl -i -s -X PUT \
|
||||||
-H "$headers" \
|
-H "$headers" \
|
||||||
|
Loading…
Reference in New Issue
Block a user