alidns: filter on record type (#1829)

This commit is contained in:
Ludovic Fernandez 2023-02-03 14:48:13 +01:00 committed by GitHub
parent ad612e639e
commit 4a14c315a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,7 +255,7 @@ func (d *DNSProvider) findTxtRecords(fqdn string) ([]alidns.Record, error) {
} }
for _, record := range result.DomainRecords.Record { for _, record := range result.DomainRecords.Record {
if record.RR == recordName { if record.RR == recordName && record.Type == "TXT" {
records = append(records, record) records = append(records, record)
} }
} }