From c379d66494f16610efb3518855c2df175d199877 Mon Sep 17 00:00:00 2001 From: sll552 Date: Sun, 3 Sep 2017 17:17:14 +0200 Subject: [PATCH] Fix cloudflare proxy status reset on dyndns update This prevents resetting of the cloudflare "proxy" status (if this host is proxied/protected by cloudflare) of the updated DNS record. --- dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc b/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc index dd2dd0bc6..7877fde6c 100644 --- a/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc +++ b/dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc @@ -637,8 +637,8 @@ class updatedns { "content" => "{$this->_dnsIP}", "type" => "A", "name" => "{$this->_dnsHost}", - "proxiable" => false, - "proxied" => false + "proxiable" => $output->result[0]->proxiable, + "proxied" => $output->result[0]->proxied ); $data_json = json_encode($hostData); $updateHostId = "https://{$dnsServer}/client/v4/zones/{$zone}/dns_records/{$host}";