dyndns: add zone to record name

Otherwise, already existing records are not recognized correctly.
This commit is contained in:
Michael Stapelberg 2021-09-01 09:37:12 +02:00
parent 20dd872fbe
commit 575a14c394

View File

@ -36,7 +36,7 @@ func Update(ctx context.Context, zone string, record libdns.Record, provider Rec
var updated []libdns.Record var updated []libdns.Record
for _, rec := range existing { for _, rec := range existing {
if rec.Name != record.Name || rec.Type != record.Type { if rec.Name+"."+zone != record.Name || rec.Type != record.Type {
continue continue
} }