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

SOFTLAYER: Fixed Softlayer TXT Record existence Issue #583 (#659)

This commit is contained in:
Saurabh Gupta
2020-02-27 21:44:14 +05:30
committed by GitHub
parent 798cdffd81
commit 7c9a23b215

View File

@ -161,6 +161,9 @@ func (s *SoftLayer) getExistingRecords(domain *datatypes.Dns_Domain) ([]*models.
service = *record.Service
}
recConfig.SetLabel(fmt.Sprintf("%s.%s", service, strings.ToLower(protocol)), *domain.Name)
case "TXT":
recConfig.TxtStrings = append(recConfig.TxtStrings, *record.Data)
fallthrough
case "MX":
if record.MxPriority != nil {
recConfig.MxPreference = uint16(*record.MxPriority)