ddns-scripts: cloudflare: use PATCH method, minimize changes
authorGedalya Nie <gedalya@gedalya.net>
Wed, 8 Jan 2025 21:58:02 +0000 (05:58 +0800)
committerFlorian Eckert <Eckert.Florian@googlemail.com>
Wed, 15 Jan 2025 07:49:24 +0000 (08:49 +0100)
commit0a98b6d0eddb81b1997572f47deaaebb63a4c796
tree5b6fb47a3aac2d26da7534cd09b1763fbfb24806
parent35eb372aa5fa1968c4458e727ebbf5d7795e455e
ddns-scripts: cloudflare: use PATCH method, minimize changes

Using the PUT method recreates the DNS record with and only with
the newly provided data. This seems unnecessary. In particular,
we don't need to hardcode a TTL of 120. Any existing comment
would be lost too.

The only detail we need to change is the IP address. Leave everything
else as it was.

Signed-off-by: Gedalya Nie <gedalya@gedalya.net>
net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/update_cloudflare_com_v4.sh