K0p1-Git / cloudflare-ddns-updater

Dynamic DNS (DDNS) service based on Cloudflare! Access your home network remotely via a custom domain name without a static IP! Written in pure BASH~
MIT License
1.39k stars 388 forks source link

Change ttl from string to number #85

Closed danieladam2611 closed 4 months ago

danieladam2611 commented 5 months ago

Cloudflare no longer accepts strings for ttl...

Error:

<13>Jun 5 17:42:30 root: {‘result’:null, ‘success’:false, ‘errors’:[{‘code’:9022, ‘message’: ‘TTL must be a number, not a string.’}], ‘messages’:[]} Docs: https://developers.cloudflare.com/api/operations/dns-records-for-a-zone-patch-dns-record
K0p1-Git commented 5 months ago

Hi @danieladam2611, thanks for bringing this to my attention. As per @danieladam2611 suggestion, would it be possible for you to also help update the v6 version in this pull before I merge? Thanks!