Skip to content

Commit

Permalink
caddy uses append and not set
Browse files Browse the repository at this point in the history
  • Loading branch information
KalleDK committed Dec 19, 2023
1 parent e19223a commit 1798215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ func (p *Provider) GetRecords(ctx context.Context, zone string) ([]libdns.Record
}

// AppendRecords adds records to the zone. It returns the records that were added.
// This is not supported by the ACMEProxy provider.
// It does the same as SetRecords.
func (p *Provider) AppendRecords(ctx context.Context, zone string, records []libdns.Record) ([]libdns.Record, error) {
return nil, fmt.Errorf("ACMEProxy provider does not support appending records")
return p.SetRecords(ctx, zone, records)
}

// SetRecords sets the records in the zone, either by updating existing records or creating new ones.
Expand Down

0 comments on commit 1798215

Please sign in to comment.