mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
AUTODNSSEC -> AUTODNSSEC_ON (#863)
* AUTODNSSEC -> AUTODNSSEC_ON * Validate AutoDNSSEC values * AUTODNSSEC now generates a warning and does nothing.
This commit is contained in:
@@ -228,7 +228,7 @@ func (c *DnsimpleAPI) getDNSSECCorrections(dc *models.DomainConfig) ([]*models.C
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if enabled && !dc.AutoDNSSEC {
|
||||
if enabled && dc.AutoDNSSEC == "off" {
|
||||
return []*models.Correction{
|
||||
{
|
||||
Msg: "Disable DNSSEC",
|
||||
@@ -237,7 +237,7 @@ func (c *DnsimpleAPI) getDNSSECCorrections(dc *models.DomainConfig) ([]*models.C
|
||||
}, nil
|
||||
}
|
||||
|
||||
if !enabled && dc.AutoDNSSEC {
|
||||
if !enabled && dc.AutoDNSSEC == "on" {
|
||||
return []*models.Correction{
|
||||
{
|
||||
Msg: "Enable DNSSEC",
|
||||
|
Reference in New Issue
Block a user