dyndns: add zone to record name
Otherwise, already existing records are not recognized correctly.
This commit is contained in:
parent
20dd872fbe
commit
575a14c394
@ -36,7 +36,7 @@ func Update(ctx context.Context, zone string, record libdns.Record, provider Rec
|
||||
|
||||
var updated []libdns.Record
|
||||
for _, rec := range existing {
|
||||
if rec.Name != record.Name || rec.Type != record.Type {
|
||||
if rec.Name+"."+zone != record.Name || rec.Type != record.Type {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user