From mboxrd@z Thu Jan  1 00:00:00 1970
From: "Bernhard B." <bernhard@liftingcoder.com>
To: ddns@lists.ipfire.org
Subject: Add Cloudflare to DDNS Providers List
Date: Sun, 16 Feb 2025 20:46:29 +0100
Message-ID: <19993045-2374-4537-96a2-5e2b1900a750@liftingcoder.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6213443216544594958=="
List-Id: <ddns.lists.ipfire.org>

--===============6213443216544594958==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

Hello,

please find attached a patch for adding Cloudflare to the list of the 
DDNS Providers. I've tested the changeset with a fresh IpFire 
installation inside QEMU and a custom domain that I own. Everything 
seems to be working fine.

Please let me know if you want anything changed.

Best Regards,
Bernhard

--===============6213443216544594958==
Content-Type: text/x-patch
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="0001-Added-Cloudflare-to-DDNS-providers.patch"
MIME-Version: 1.0

RnJvbSBmMjRmMzc1NjBkNGY1MzhkNzBhZjY5MjMxY2FiYWEwZDBkNzMwZWU3IE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBCZXJuaGFyZCBCIDxiZXJuaGFyZEBsaWZ0aW5nY29kZXIuY29t
PgpEYXRlOiBTdW4sIDE2IEZlYiAyMDI1IDE5OjIwOjIxICswMTAwClN1YmplY3Q6IFtQQVRDSF0g
QWRkZWQgQ2xvdWRmbGFyZSB0byBERE5TIHByb3ZpZGVycwoKVGhpcyBjaGFuZ2VzZXRzIGFkZHMg
Q2xvdWRmbGFyZSB0byB0aGUgbGlzdCBvZiBERE5TIHByb3ZpZGVycy4KCkROUyBSZWNvcmQgVXBk
YXRlIFdvcmtmbG93OgoqIGZpcnN0LCB0aGUgem9uZSBpZCBmb3IgdGhlIGdpdmVuIGRvbWFpbiBu
YW1lIGlzIGZldGNoZWQKICAgLT4gaWYgbm8gem9uZSBpZCBjYW4gYmUgb2J0YWluZWQsIHRoZW4g
ZWl0aGVyIHRoZSBwc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