timothymiller / cloudflare-ddns

🎉🌩️ Dynamic DNS (DDNS) service based on Cloudflare! Access your home network remotely via a custom domain name without a static IP!
https://timknowsbest.com/free-dynamic-dns
GNU General Public License v3.0
3.13k stars 329 forks source link

Add maximum TTL #177

Open cotton105 opened 9 months ago

cotton105 commented 9 months ago

Cloudflare API doesn't accept TTL values above 1 day (86400 seconds), which causes the code to fail if such a value is set. This adds an upper-limit to the TTL value in config.json, and changes the wording of the log slightly.