mirror of
https://github.com/go-acme/lego.git
synced 2024-12-01 18:43:17 +02:00
namesilo: fix cleanup. (#1240)
This commit is contained in:
parent
b23d947e17
commit
00a2d5dbf8
@ -124,7 +124,7 @@ func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error {
|
||||
var lastErr error
|
||||
name := getRecordName(fqdn, zoneName)
|
||||
for _, r := range resp.Reply.ResourceRecord {
|
||||
if r.Type == "TXT" && r.Host == name {
|
||||
if r.Type == "TXT" && (r.Host == name || r.Host == dns01.UnFqdn(fqdn)) {
|
||||
_, err := d.client.DnsDeleteRecord(&namesilo.DnsDeleteRecordParams{Domain: zoneName, ID: r.RecordID})
|
||||
if err != nil {
|
||||
lastErr = fmt.Errorf("namesilo: %w", err)
|
||||
|
Loading…
Reference in New Issue
Block a user