1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Remove value check for removed AUTODNSSEC() function (we now only have AUTODNSSEC_ON and AUTODNSSEC_OFF) (#2091)

This commit is contained in:
Yannik Sembritzki
2023-02-23 18:58:22 +05:30
committed by GitHub
parent 7236ea818e
commit b1b24df6cb

View File

@ -547,10 +547,6 @@ func processSplitHorizonDomains(config *models.DNSConfig) error {
//}
func checkAutoDNSSEC(dc *models.DomainConfig) (errs []error) {
if dc.AutoDNSSEC != "" && dc.AutoDNSSEC != "on" && dc.AutoDNSSEC != "off" {
errs = append(errs, fmt.Errorf("domain %q AutoDNSSEC=%q is invalid (expecting \"\", \"off\", or \"on\")", dc.Name, dc.AutoDNSSEC))
}
if dc.AutoDNSSEC == "on" {
for providerName, _ := range dc.DNSProviderNames {
if dc.RegistrarName != providerName {