Skip to content

Commit

Permalink
alidns: filter on record type (#1829)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez authored Feb 3, 2023
1 parent ad612e6 commit 4a14c31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/dns/alidns/alidns.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func (d *DNSProvider) findTxtRecords(fqdn string) ([]alidns.Record, error) {
}

for _, record := range result.DomainRecords.Record {
if record.RR == recordName {
if record.RR == recordName && record.Type == "TXT" {
records = append(records, record)
}
}
Expand Down

0 comments on commit 4a14c31

Please sign in to comment.