From e93a7c71db7b35512591028316f15f579cd57cf7 Mon Sep 17 00:00:00 2001 From: calvinbui Date: Thu, 17 Dec 2015 05:23:22 +1100 Subject: Stop DynDNS from turning off CloudFlare By having 'proxiable' and 'proxied' values set to false, CloudFlare is turned off (i.e. not go through CloudFlare) for the domain when updating the DNS records. Setting them to 'true' would turn CloudFlare on that domain, however the user may have disabled it for their own reasons and would not like it changed. Instead, removing these two values will not alter the status of CloudFlare on the domain. Tested with false/false, true/false, false/true, true/true in all scenarios. --- src/etc/inc/dyndns.class | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/etc/inc/dyndns.class b/src/etc/inc/dyndns.class index 1d1641b..41ac192 100644 --- a/src/etc/inc/dyndns.class +++ b/src/etc/inc/dyndns.class @@ -716,9 +716,7 @@ $hostData = array( "content" => "{$this->_dnsIP}", "type" => "A", - "name" => "{$this->_dnsHost}", - "proxiable" => false, - "proxied" => false + "name" => "{$this->_dnsHost}" ); $data_json = json_encode($hostData); $updateHostId = "https://{$dnsServer}/client/v4/zones/{$zone}/dns_records/{$host}"; -- cgit v1.1