1
0
mirror of https://github.com/go-acme/lego.git synced 2024-11-29 01:42:09 +02:00

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 {
if record.RR == recordName {
if record.RR == recordName && record.Type == "TXT" {
records = append(records, record)
}
}