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.
This commit is contained in:
sll552 2017-09-03 17:17:14 +02:00 committed by Franco Fichtner
parent 3a5f9a78a2
commit c379d66494

View file

@ -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}";