From 8ec5918a597d4979bb701a2a17ca8ea683aa1dd5 Mon Sep 17 00:00:00 2001 From: Jared Contrascere Date: Wed, 17 Apr 2024 22:04:30 -0400 Subject: [PATCH] Fix a bug in setting the DNS TTL --- cloudflare-template.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudflare-template.sh b/cloudflare-template.sh index 4bee8f3..66b2562 100755 --- a/cloudflare-template.sh +++ b/cloudflare-template.sh @@ -102,7 +102,7 @@ update=$(curl -s -X PATCH "https://api.cloudflare.com/client/v4/zones/${CLOUDFLA -H "X-Auth-Email: ${CLOUDFLARE_AUTH_EMAIL}" \ -H "$auth_header ${CLOUDFLARE_AUTH_KEY}" \ -H "Content-Type: application/json" \ - --data "{\"type\":\"A\",\"name\":\"${CLOUDFLARE_RECORD_NAME}\",\"content\":\"$ip\",\"${CLOUDFLARE_TTL}\":\"${CLOUDFLARE_TTL}\",\"proxied\":${CLOUDFLARE_PROXY}}") + --data "{\"type\":\"A\",\"name\":\"${CLOUDFLARE_RECORD_NAME}\",\"content\":\"$ip\",\"ttl\":\"${CLOUDFLARE_TTL}\",\"proxied\":${CLOUDFLARE_PROXY}}") ########################################### ## Report the status