From 0dd0d50b5c7c8e0eb18eb0fcf6ecf4f335c50e2f Mon Sep 17 00:00:00 2001 From: sll552 Date: Sun, 3 Sep 2017 17:17:14 +0200 Subject: [PATCH] dns/dyndns: 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. (cherry picked from commit c379d66494f16610efb3518855c2df175d199877) (cherry picked from commit a2b2f8c0a5364abe00a5eccd359ff5e761f83f6d) --- dns/dyndns/Makefile | 1 + dns/dyndns/src/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dns/dyndns/Makefile b/dns/dyndns/Makefile index 0eebec188..112a23964 100644 --- a/dns/dyndns/Makefile +++ b/dns/dyndns/Makefile @@ -1,5 +1,6 @@ PLUGIN_NAME= dyndns PLUGIN_VERSION= 1.2 +PLUGIN_REVISION= 1 PLUGIN_COMMENT= Dynamic DNS Support PLUGIN_MAINTAINER= franco@opnsense.org 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}";