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

CHORE: Eliminate SetTargetTXTString() (#2409)

This commit is contained in:
Tom Limoncelli
2023-06-01 13:11:36 -04:00
committed by GitHub
parent 23ba49e753
commit ce89f7fb96
5 changed files with 51 additions and 54 deletions

View File

@@ -367,6 +367,8 @@ func (c *hednsProvider) GetZoneRecords(domain string, meta map[string]string) (m
// Convert to TXT record as SPF is deprecated
rc.Type = "TXT"
fallthrough
case "TXT":
err = rc.SetTargetTXTs(models.ParseQuotedTxt(data))
default:
err = rc.PopulateFromString(rc.Type, data, domain)
}