mirror of
https://github.com/opnsense/plugins.git
synced 2026-06-04 14:26:13 -04:00
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:
parent
3a5f9a78a2
commit
c379d66494
1 changed files with 2 additions and 2 deletions
|
|
@ -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}";
|
||||
|
|
|
|||
Loading…
Reference in a new issue