Skip to content
Snippets Groups Projects
Commit d482b4e3 authored by Thom's avatar Thom :tools:
Browse files

Make DNSSEC available when value is null (#5571)

parent a265c649
No related branches found
No related tags found
No related merge requests found
......@@ -449,7 +449,7 @@ class powerdns_plugin {
function notifySlave($data) {
global $app;
$pdns_control = $this->find_pdns_control();
if ( $pdns_control != false ) {
$app->system->exec_safe($pdns_control . ' notify ?', rtrim($data["new"]["origin"],"."));
......@@ -458,7 +458,7 @@ class powerdns_plugin {
function fetchFromMaster($data) {
global $app;
$pdns_control = $this->find_pdns_control();
if ( $pdns_control != false ) {
$app->system->exec_safe($pdns_control . ' retrieve ?', rtrim($data["new"]["origin"],"."));
......@@ -502,7 +502,7 @@ class powerdns_plugin {
}
// If DNSSEC is wanted, enable it
if ($data['new']['dnssec_wanted'] === 'Y' && $data['old']['dnssec_wanted'] === 'N') {
if ($data['new']['dnssec_wanted'] === 'Y' && (is_null($data['old']['dnssec_wanted']) || $data['old']['dnssec_wanted'] === 'N')) {
$this->soa_dnssec_create($data);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment