mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07: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:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user