ddclient plugin: Added cloudflare to checkip providers (#4167)

* ddclient plugin: Added cloudflare to checkip providers

* Use one.one.one.one instead of 1.1.1.1 to prevent IP address before client IP in response.
This commit is contained in:
Rob van Oostenrijk
2024-08-09 21:53:03 +02:00
committed by GitHub
parent d36177fc9c
commit 4de45f3e66
2 changed files with 2 additions and 0 deletions
@@ -139,6 +139,7 @@
<Default>web_dyndns</Default>
<ValidationMessage>An IP service type is required.</ValidationMessage>
<OptionValues>
<web_dyndns>cloudflare</web_dyndns>
<web_dyndns>dyndns</web_dyndns>
<web_freedns>freedns</web_freedns>
<web_googledomains>googledomains</web_googledomains>
@@ -29,6 +29,7 @@ import ipaddress
checkip_service_list = {
'cloudflare': '%s://one.one.one.one/cdn-cgi/trace',
'dyndns': '%s://checkip.dyndns.org/',
'freedns': '%s://freedns.afraid.org/dynamic/check.php',
'googledomains': '%s://domains.google.com/checkip',