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

REFACTOR: providers should not directly access .TxtStrings (#2629)

This commit is contained in:
Tom Limoncelli
2023-11-18 15:06:20 -05:00
committed by GitHub
parent 8040e7bba2
commit 159fdf07ad
18 changed files with 48 additions and 29 deletions

View File

@@ -154,7 +154,7 @@ func (n *namedotcomProvider) createRecord(rc *models.RecordConfig, domain string
case "A", "AAAA", "ANAME", "CNAME", "MX", "NS":
// nothing
case "TXT":
// record.Answer = encodeTxt(rc.TxtStrings)
// nothing
case "SRV":
if rc.GetTargetField() == "." {
return errors.New("SRV records with empty targets are not supported (as of 2019-11-05, the API returns 'Parameter Value Error - Invalid Srv Format')")