mirror of
https://github.com/opnsense/plugins.git
synced 2026-05-28 04:34:15 -04:00
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 commitc379d66494) (cherry picked from commita2b2f8c0a5)
This commit is contained in:
parent
fb0cc1903a
commit
0dd0d50b5c
2 changed files with 3 additions and 2 deletions
|
|
@ -1,5 +1,6 @@
|
|||
PLUGIN_NAME= dyndns
|
||||
PLUGIN_VERSION= 1.2
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_COMMENT= Dynamic DNS Support
|
||||
PLUGIN_MAINTAINER= franco@opnsense.org
|
||||
|
||||
|
|
|
|||
|
|
@ -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